18316Sroot /* 235097Sbostic * Copyright (c) 1988 Regents of the University of California. 335097Sbostic * All rights reserved. 435097Sbostic * 535097Sbostic * Redistribution and use in source and binary forms are permitted 635097Sbostic * provided that the above copyright notice and this paragraph are 735097Sbostic * duplicated in all such forms and that any documentation, 835097Sbostic * advertising materials, and other materials related to such 935097Sbostic * distribution and use acknowledge that the software was developed 1035097Sbostic * by the University of California, Berkeley. The name of the 1135097Sbostic * University may not be used to endorse or promote products derived 1235097Sbostic * from this software without specific prior written permission. 1335097Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 1435097Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 1535097Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 168316Sroot */ 178316Sroot 1835097Sbostic #if defined(LIBC_SCCS) && !defined(lint) 19*42181Sbostic static char sccsid[] = "@(#)strcpy.c 5.5 (Berkeley) 05/17/90"; 2035097Sbostic #endif /* LIBC_SCCS and not lint */ 2135097Sbostic 22*42181Sbostic #include <string.h> 23*42181Sbostic 248316Sroot char * 2535097Sbostic strcpy(to, from) 2635097Sbostic register char *to, *from; 278316Sroot { 2835097Sbostic char *save = to; 298316Sroot 3040557Sbostic for (; *to = *from; ++from, ++to); 3135097Sbostic return(save); 328316Sroot } 33