diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portability.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h index d81ddead..76790f4d 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -103,6 +103,8 @@ char *dirname(char *path); char *__xpg_basename(char *path); static inline char *basename(char *path) { return __xpg_basename(path); } char *strcasestr(const char *haystack, const char *needle); +void *memmem(const void *haystack, size_t haystack_length, + const void *needle, size_t needle_length); #endif // defined(glibc) // getopt_long(), getopt_long_only(), and struct option. |