xref: /csrg-svn/lib/libc/string/strcpy.c (revision 8316)
1*8316Sroot /* @(#)strcpy.c	4.1 (Berkeley) 10/05/82 */
2*8316Sroot /*
3*8316Sroot  * Copy string s2 to s1.  s1 must be large enough.
4*8316Sroot  * return s1
5*8316Sroot  */
6*8316Sroot 
7*8316Sroot char *
8*8316Sroot strcpy(s1, s2)
9*8316Sroot register char *s1, *s2;
10*8316Sroot {
11*8316Sroot 	register char *os1;
12*8316Sroot 
13*8316Sroot 	os1 = s1;
14*8316Sroot 	while (*s1++ = *s2++)
15*8316Sroot 		;
16*8316Sroot 	return(os1);
17*8316Sroot }
18