Commit | Line | Data |
---|---|---|
af1819bc KB |
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) | |
db64e867 | 12 | static char sccsid[] = "@(#)memmove.c 5.2 (Berkeley) %G%"; |
af1819bc KB |
13 | #endif /* LIBC_SCCS and not lint */ |
14 | ||
15 | #include <string.h> | |
16 | #include <sys/stdc.h> | |
17 | ||
af1819bc KB |
18 | /* |
19 | * Copy a block of memory, handling overlap. | |
20 | */ | |
21 | void * | |
db64e867 KB |
22 | memmove(dst, src, length) |
23 | void *dst; | |
24 | const void *src; | |
af1819bc KB |
25 | register size_t length; |
26 | { | |
db64e867 KB |
27 | bcopy((const char *)src, (char *)dst, length); |
28 | return(dst); | |
af1819bc | 29 | } |