Commit | Line | Data |
---|---|---|
6f577349 | 1 | /* |
fdd5a593 KB |
2 | * Copyright (c) 1988 Regents of the University of California. |
3 | * All rights reserved. | |
4 | * | |
019bea33 | 5 | * %sccs.include.redist.c% |
6f577349 BJ |
6 | */ |
7 | ||
fdd5a593 | 8 | #if defined(LIBC_SCCS) && !defined(lint) |
019bea33 | 9 | static char sccsid[] = "@(#)strcpy.c 5.6 (Berkeley) %G%"; |
fdd5a593 KB |
10 | #endif /* LIBC_SCCS and not lint */ |
11 | ||
336401ac KB |
12 | #include <string.h> |
13 | ||
6f577349 | 14 | char * |
fdd5a593 KB |
15 | strcpy(to, from) |
16 | register char *to, *from; | |
6f577349 | 17 | { |
fdd5a593 | 18 | char *save = to; |
6f577349 | 19 | |
523dfe1e | 20 | for (; *to = *from; ++from, ++to); |
fdd5a593 | 21 | return(save); |
6f577349 | 22 | } |