xref: /original-bsd/lib/libc/string/memmove.c (revision 0edb85a7)
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[] = "@(#)memmove.c	5.2 (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, handling overlap.
20  */
21 void *
22 memmove(dst, src, length)
23 	void *dst;
24 	const void *src;
25 	register size_t length;
26 {
27 	bcopy((const char *)src, (char *)dst, length);
28 	return(dst);
29 }
30