|
|
1.1 root 1: /*
2: * Coherent Standard I/O Library
3: * Catenate strings
4: */
5:
6: #include <stdio.h>
7:
8: char *
9: strcat(as1, s2)
10: char *as1;
11: register char *s2;
12: {
13: register char *s1;
14:
15: s1 = as1;
16: while (*s1++)
17: ;
18: for (s1--; *s1++ = *s2++; )
19: ;
20: return (as1);
21: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.