#include
unsigned int strlen(char *src)
{
unsigned int len=0;
while(*src !='\0')
len ;
return len;
}
int main()
{
char *a="abcdef";
unsigned int len=0;
len=strlen(a);
printf("the string a are \"%s\"\n",a);
printf("the length of a is %d\n",len);
}
阅读(1463) | 评论(0) | 转发(0) |