1 2 3 4 5 6 7 8 9 10 11 12
char *strcat(char *s1, const char *s2) { char *s = s1; while (*s1) s1++; while ((*s1++ = *s2++)) ; return s; }