xref: /csrg-svn/lib/libc/string/memcpy.c (revision 42072)
141954Sbostic /*-
241954Sbostic  * Copyright (c) 1990 The Regents of the University of California.
334479Sbostic  * All rights reserved.
434479Sbostic  *
541954Sbostic  * This code is derived from software contributed to Berkeley by
641954Sbostic  * Chris Torek.
741954Sbostic  *
841954Sbostic  * %sccs.include.redist.c%
924196Skre  */
1024196Skre 
1126528Sdonn #if defined(LIBC_SCCS) && !defined(lint)
12*42072Sbostic static char sccsid[] = "@(#)memcpy.c	5.6 (Berkeley) 05/15/90";
1334479Sbostic #endif /* LIBC_SCCS and not lint */
1424196Skre 
1541954Sbostic #include <string.h>
1641954Sbostic #include <sys/stdc.h>
1724196Skre 
1841954Sbostic /*
1941954Sbostic  * Copy a block of memory.
2041954Sbostic  */
2141954Sbostic void *
memcpy(dst,src,n)2241954Sbostic memcpy(dst, src, n)
2341954Sbostic 	void *dst;
2441954Sbostic 	const void *src;
2541954Sbostic 	size_t n;
2641954Sbostic {
27*42072Sbostic 	bcopy((const char *)src, (char *)dst, n);
28*42072Sbostic 	return(dst);
2924196Skre }
30