summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2005-08-25 18:26:58 +0000
committerandre <andre@FreeBSD.org>2005-08-25 18:26:58 +0000
commit45fd598f4942e0ea7d9bb2098d535eb046cfc00c (patch)
tree2f1fcdc8a52ba5e5b1514b1acb657de861faeded /include
parent07a0e1e154365c2461f41a99ec29ae4aa16d3905 (diff)
downloadFreeBSD-src-45fd598f4942e0ea7d9bb2098d535eb046cfc00c.zip
FreeBSD-src-45fd598f4942e0ea7d9bb2098d535eb046cfc00c.tar.gz
Add the function memmem(3) as found in glibc and others.
It is the binary equivalent to strstr(3). void *memmem(const void *big, size_t big_len, const void *little, size_t little_len); Submitted by: Pascal Gloor <pascal.gloor at spale.com> MFC after: 3 days
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 efc8aec..fb373c8 100644
--- a/include/string.h
+++ b/include/string.h
@@ -61,6 +61,7 @@ void *memccpy(void * __restrict, const void * __restrict, int, size_t);
void *memchr(const void *, int, size_t) __pure;
int memcmp(const void *, const void *, size_t) __pure;
void *memcpy(void * __restrict, const void * __restrict, size_t);
+void *memmem(const void *, size_t, const void *, size_t);
void *memmove(void *, const void *, size_t);
void *memset(void *, int, size_t);
#if __BSD_VISIBLE
OpenPOWER on IntegriCloud