Initial revision
This commit is contained in:
15
modules/src/string/strcat.c
Normal file
15
modules/src/string/strcat.c
Normal file
@@ -0,0 +1,15 @@
|
||||
/* append t to s
|
||||
*/
|
||||
char *
|
||||
strcat(s, t)
|
||||
register char *s, *t;
|
||||
{
|
||||
register char *b = s;
|
||||
|
||||
while (*s++)
|
||||
;
|
||||
s--;
|
||||
while (*s++ = *t++)
|
||||
;
|
||||
return b;
|
||||
}
|
||||
Reference in New Issue
Block a user