|
|
1.1 root 1: /* @(#)strcat.c 4.1 (Berkeley) 12/21/80 */
2: /*
3: * Concatenate s2 on the end of s1. S1's space must be large enough.
4: * Return s1.
5: */
6:
7: char *
8: strcat(s1, s2)
9: register char *s1, *s2;
10: {
11: register char *os1;
12:
13: os1 = s1;
14: while (*s1++)
15: ;
16: --s1;
17: while (*s1++ = *s2++)
18: ;
19: return(os1);
20: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.