18316Sroot /* 235097Sbostic * Copyright (c) 1988 Regents of the University of California. 335097Sbostic * All rights reserved. 435097Sbostic * 542635Sbostic * %sccs.include.redist.c% 68316Sroot */ 78316Sroot 835097Sbostic #if defined(LIBC_SCCS) && !defined(lint) 9*46613Sbostic static char sccsid[] = "@(#)strcpy.c 5.7 (Berkeley) 02/24/91"; 1035097Sbostic #endif /* LIBC_SCCS and not lint */ 1135097Sbostic 12*46613Sbostic #include <sys/cdefs.h> 1342181Sbostic #include <string.h> 1442181Sbostic 158316Sroot char * 1635097Sbostic strcpy(to, from) 17*46613Sbostic register char *to; 18*46613Sbostic register const char *from; 198316Sroot { 2035097Sbostic char *save = to; 218316Sroot 2240557Sbostic for (; *to = *from; ++from, ++to); 2335097Sbostic return(save); 248316Sroot } 25