diff options
Diffstat (limited to 'runtime/FreeStanding/memcpy.c')
-rw-r--r-- | runtime/FreeStanding/memcpy.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/FreeStanding/memcpy.c b/runtime/FreeStanding/memcpy.c new file mode 100644 index 00000000..c7c6e6d3 --- /dev/null +++ b/runtime/FreeStanding/memcpy.c @@ -0,0 +1,19 @@ +/*===-- memcpy.c ----------------------------------------------------------===// +// +// The KLEE Symbolic Virtual Machine +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===*/ + +#include <stdlib.h> + +void *memcpy(void *destaddr, void const *srcaddr, size_t len) { + char *dest = destaddr; + char const *src = srcaddr; + + while (len-- > 0) + *dest++ = *src++; + return destaddr; +} |