现在的状态就是,心里很空虚,感觉干啥都不得意,学东西学不进去,玩也玩不好,但是现实告诉我一定要想办法升华自己
int my_strlen(char* str)标签:arr,end,--,C语言,char,int,str,strlen,指针 From: https://blog.51cto.com/u_15943742/6037239
{
char* start = str;
char* end = str;
while(*end != '\0')
{
end++;
}
return end-start;
}
int main()
{
char arr[] = "wangjunkai";
int len = my_strlen(arr);
printf("%d",len);
return 0;
}