|
|
1.1 root 1: /*
2: * Create a new copy of a string.
3: */
4: #include "local_misc.h"
5: extern char *strcpy();
6:
7: char *
8: newcpy(s)
9: register char *s;
10: {
11: if (NULL == s)
12: return (NULL);
13: return (strcpy(alloc(strlen(s) + 1), s));
14: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.