模拟实现strlen
代码语言:javascript复制#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int MyStrlen(char* str)
{
int len = 0;
while (str[len] != '
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int MyStrlen(char* str)
{
int len = 0;
while (str[len] != '