diff options
Diffstat (limited to 'com32/lib/mempcpy.c')
-rw-r--r-- | com32/lib/mempcpy.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/com32/lib/mempcpy.c b/com32/lib/mempcpy.c new file mode 100644 index 0000000..be23b66 --- /dev/null +++ b/com32/lib/mempcpy.c @@ -0,0 +1,14 @@ +/* + * mempcpy.c + */ + +#include <string.h> +#include <stdint.h> + +/* simply a wrapper around memcpy implementation */ + +void *mempcpy(void *dst, const void *src, size_t n) +{ + + return (char *)memcpy(dst, src, n) + n; +} |