xref: /original-bsd/lib/libc/string/memcpy.c (revision f72a1a16)
1 /*-
2  * Copyright (c) 1990 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Chris Torek.
7  *
8  * %sccs.include.redist.c%
9  */
10 
11 #if defined(LIBC_SCCS) && !defined(lint)
12 static char sccsid[] = "@(#)memcpy.c	5.6 (Berkeley) 05/15/90";
13 #endif /* LIBC_SCCS and not lint */
14 
15 #include <string.h>
16 #include <sys/stdc.h>
17 
18 /*
19  * Copy a block of memory.
20  */
21 void *
22 memcpy(dst, src, n)
23 	void *dst;
24 	const void *src;
25 	size_t n;
26 {
27 	bcopy((const char *)src, (char *)dst, n);
28 	return(dst);
29 }
30