xref: /csrg-svn/lib/libc/string/memcpy.c (revision 41954)
1*41954Sbostic /*-
2*41954Sbostic  * Copyright (c) 1990 The Regents of the University of California.
334479Sbostic  * All rights reserved.
434479Sbostic  *
5*41954Sbostic  * This code is derived from software contributed to Berkeley by
6*41954Sbostic  * Chris Torek.
7*41954Sbostic  *
8*41954Sbostic  * %sccs.include.redist.c%
924196Skre  */
1024196Skre 
1126528Sdonn #if defined(LIBC_SCCS) && !defined(lint)
12*41954Sbostic static char sccsid[] = "@(#)memcpy.c	5.5 (Berkeley) 05/15/90";
1334479Sbostic #endif /* LIBC_SCCS and not lint */
1424196Skre 
15*41954Sbostic #include <string.h>
16*41954Sbostic #include <sys/stdc.h>
1724196Skre 
18*41954Sbostic #undef memcpy
1924196Skre 
20*41954Sbostic /*
21*41954Sbostic  * Copy a block of memory.
22*41954Sbostic  */
23*41954Sbostic void *
24*41954Sbostic memcpy(dst, src, n)
25*41954Sbostic 	void *dst;
26*41954Sbostic 	const void *src;
27*41954Sbostic 	size_t n;
28*41954Sbostic {
29*41954Sbostic 	return (memmove(dst, src, n));
3024196Skre }
31