摘要: //去除左边空格void TrimLeft(char* str) { if (*str == ' ')return; char* t = str; while (*t == ' ')t++; while (*str++ = *t++); } //去除右边空格 void TrimRight(char* 阅读全文
posted @ 2020-12-10 16:20 sunshine_gzw 阅读(232) 评论(0) 推荐(0) 编辑
摘要: char* mystrcpy(char* str_one,const char* str_two) { char* tmp = str_one; while (*str_one++ = *str_two++)return tmp; } char* mystrcat(char* str_one,con 阅读全文
posted @ 2020-12-10 12:54 sunshine_gzw 阅读(179) 评论(0) 推荐(0) 编辑