124196Skre /* 224196Skre * Copyright (c) 1985 Regents of the University of California. 3*34479Sbostic * All rights reserved. 4*34479Sbostic * 5*34479Sbostic * Redistribution and use in source and binary forms are permitted 6*34479Sbostic * provided that this notice is preserved and that due credit is given 7*34479Sbostic * to the University of California at Berkeley. The name of the University 8*34479Sbostic * may not be used to endorse or promote products derived from this 9*34479Sbostic * software without specific written prior permission. This software 10*34479Sbostic * is provided ``as is'' without express or implied warranty. 1124196Skre */ 1224196Skre 1326528Sdonn #if defined(LIBC_SCCS) && !defined(lint) 14*34479Sbostic static char sccsid[] = "@(#)memcpy.c 5.3 (Berkeley) 05/25/88"; 15*34479Sbostic #endif /* LIBC_SCCS and not lint */ 1624196Skre 1724196Skre char * 1824196Skre memcpy(t, f, n) 1924196Skre register char *t, *f; 2024196Skre register n; 2124196Skre { 2224196Skre register char *p = t; 2324196Skre 2424196Skre while (--n >= 0) 2524196Skre *t++ = *f++; 2624196Skre 2724196Skre return (p); 2824196Skre } 29