天天看點

不用中間變量實作strlen函數

int strlen(const char*s)

{

if(*s==0)

return 0;

else

return strlen(s+1)+1;

}