xref: /csrg-svn/lib/libc/string/strcpy.c (revision 61193)
18316Sroot /*
2*61193Sbostic  * Copyright (c) 1988, 1993
3*61193Sbostic  *	The Regents of the University of California.  All rights reserved.
435097Sbostic  *
542635Sbostic  * %sccs.include.redist.c%
68316Sroot  */
78316Sroot 
835097Sbostic #if defined(LIBC_SCCS) && !defined(lint)
9*61193Sbostic static char sccsid[] = "@(#)strcpy.c	8.1 (Berkeley) 06/04/93";
1035097Sbostic #endif /* LIBC_SCCS and not lint */
1135097Sbostic 
1246613Sbostic #include <sys/cdefs.h>
1342181Sbostic #include <string.h>
1442181Sbostic 
158316Sroot char *
strcpy(to,from)1635097Sbostic strcpy(to, from)
1746613Sbostic 	register char *to;
1846613Sbostic 	register const char *from;
198316Sroot {
2035097Sbostic 	char *save = to;
218316Sroot 
2240557Sbostic 	for (; *to = *from; ++from, ++to);
2335097Sbostic 	return(save);
248316Sroot }
25