Initial revision

This commit is contained in:
ceriel
1987-01-06 11:41:50 +00:00
parent 3788350d7c
commit a7aa5d93ff
38 changed files with 1227 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
/* append t to s, upto n characters
*/
char *
strncat(s, t, n)
register char *s, *t;
register int n;
{
register char *b = s;
while (*s++)
;
s--;
while ((n-- > 0) && (*s++ = *t++))
;
return b;
}