summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-10-15 23:02:57 -0400
committerRich Felker <dalias@aerifal.cx>2012-10-15 23:02:57 -0400
commitc86f2974e2acd330be2d587173dd4dd56db82e22 (patch)
tree6b607e4088f414b8ca398544ec9407f9e77c0a62 /include
parent21284ec75db064d3f27fcd1d6ae37b613db61c43 (diff)
downloadmusl-c86f2974e2acd330be2d587173dd4dd56db82e22.tar.gz
add memmem function (gnu extension)
based on strstr. passes gnulib tests and a few quick checks of my own.
Diffstat (limited to 'include')
-rw-r--r--include/string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index 3a0868b7..33f01378 100644
--- a/include/string.h
+++ b/include/string.h
@@ -95,6 +95,7 @@ int strcasecmp_l (const char *, const char *, locale_t);
int strncasecmp_l (const char *, const char *, size_t, locale_t);
char *strchrnul(const char *, int);
char *strcasestr(const char *, const char *);
+void *memmem(const void *, size_t, const void *, size_t);
void *memrchr(const void *, int, size_t);
void *mempcpy(void *, const void *, size_t);
#ifndef __cplusplus