|
|
1.1 root 1: /*
2: * strcpy.c
3: * ANSI 4.11.2.3.
4: * Copy one string to another.
5: */
6:
7: #include <string.h>
8:
9: char *strcpy(s1, s2) char *s1; register char *s2;
10: {
11: register char *cp;
12:
13: for (cp = s1; *cp++ = *s2++; )
14: ;
15: return (s1);
16: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.