字符串操作函数 时间久了忘了,自己写一遍 (*¯︶¯*) 一、strlen 计算字符串长度 1 size_t mystrlen(const char *s){ 2 assert(s!=NULL); 3 size_t len=0; 4 while(*s!='