写自己的strcat函数------→mycmp
1 #include <stdio.h> 2 #include <string.h> 3 #define N 5 4 5 int mycmp(char *s1, char *s2) 6 { 7 //数组型 8 /* int i = 0; 9 while(s1[i] == s2[i] && s1[i] != ' ') { 10 i++; 11 } 12 13 return s1[i] - s2[i]; */ 14 //指针型 15 while(*s1 == *s2 && *s1 != '