13 lines
142 B
C
13 lines
142 B
C
|
char *strcat(char *s1,
|
||
|
const char *s2)
|
||
|
{
|
||
|
char *s = s1;
|
||
|
|
||
|
while (*s1)
|
||
|
s1++;
|
||
|
|
||
|
while ((*s1++ = *s2++))
|
||
|
;
|
||
|
return s;
|
||
|
}
|