int str_len(const char* str) { assert( str != NULL); int len = 0; while(*str++) len++; return len; } char* str_cpy(char* str,const char* src) { assert(str != NULL && src != NULL); char* tmp = str; while(*str++ = *src++); return tmp; } char* str_cat(char* str,const char* src) { assert(str!=NULL && src!=NULL); char* tmp = str; while(*str) str++; //注意str++不能放括号里,会使str指向' '后一个字符 while(*str++ = *src++); return tmp; } int str_cmp(const char* str,const char* src) { assert(str!=NULL && src!=NULL); while(*str == *src) { if(*str == '