search for: ff3770a

Displaying 1 result from an estimated 1 matches for "ff3770a".

2011 Aug 29
0
[PATCH] Add mempcpy() as wrapper around memcpy
...emccpy.o memmem.o memswap.o \ memmove.o memchr.o memrchr.o bzero.o \ strcasecmp.o strncasecmp.o strndup.o strerror.o strsignal.o \ strcat.o strchr.o strcmp.o strcpy.o strdup.o strlen.o strnlen.o \ diff --git a/usr/klibc/mempcpy.c b/usr/klibc/mempcpy.c new file mode 100644 index 0000000..ff3770a --- /dev/null +++ b/usr/klibc/mempcpy.c @@ -0,0 +1,7 @@ +#include <string.h> + +void *mempcpy(void *dst, const void *src, size_t len) +{ + return (char *) memcpy(dst, src, len) + len; + +} -- 1.7.5.4