diff options
Diffstat (limited to 'lib/strutils.c')
-rw-r--r-- | lib/strutils.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/strutils.c b/lib/strutils.c index 5dda13805..2337b07b9 100644 --- a/lib/strutils.c +++ b/lib/strutils.c @@ -132,6 +132,13 @@ err: return -1; } +#ifndef HAVE_MEMPCPY +void *mempcpy(void *restrict dest, const void *restrict src, size_t n) +{ + return ((char *)memcpy(dest, src, n)) + n; +} +#endif + #ifndef HAVE_STRNLEN size_t strnlen(const char *s, size_t maxlen) { |