diff options
author | Daniel Trebbien | 2013-01-31 00:49:08 +0100 |
---|---|---|
committer | Daniel Trebbien | 2013-01-31 00:53:00 +0100 |
commit | 02887b73ebdbf3a222b87d8f09c65b58b7b9a696 (patch) | |
tree | e5a8295d2cfdefa08d479b74645a15fb2ec8c0cb /include/strutils.h | |
parent | textual: improve an error message and a help text (diff) | |
download | kernel-qcow2-util-linux-02887b73ebdbf3a222b87d8f09c65b58b7b9a696.tar.gz kernel-qcow2-util-linux-02887b73ebdbf3a222b87d8f09c65b58b7b9a696.tar.xz kernel-qcow2-util-linux-02887b73ebdbf3a222b87d8f09c65b58b7b9a696.zip |
Implement mempcpy() in terms of memcpy() if mempcpy() is unavailable
Diffstat (limited to 'include/strutils.h')
-rw-r--r-- | include/strutils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/strutils.h b/include/strutils.h index 123907fc9..00598cf62 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -28,6 +28,9 @@ extern double strtod_or_err(const char *str, const char *errmesg); extern long strtol_or_err(const char *str, const char *errmesg); extern unsigned long strtoul_or_err(const char *str, const char *errmesg); +#ifndef HAVE_MEMPCPY +extern void *mempcpy(void *restrict dest, const void *restrict src, size_t n); +#endif #ifndef HAVE_STRNLEN extern size_t strnlen(const char *s, size_t maxlen); #endif |