天天看点

不用中间变量实现strlen函数

int strlen(const char*s)

{

if(*s==0)

return 0;

else

return strlen(s+1)+1;

}