summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2013-05-13 10:37:03 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2013-05-13 10:37:03 +0000
commita909a144fe62750d8c729b01bcb4b9116b978977 (patch)
tree66666cdc3f32b62244b3353090fd54da280ede06 /include
parentd32796a55c78fab34d73da533e546d5c94704089 (diff)
Add an implementation of memmem() -- from FreeBSD with some tweaks.
Requires a libc minor bump, committing now so that we have up-to-date snapshots for the upcoming hackathon. joint work with millert@ man page bits ok jmc@ input and ok millert@, guenther@, deraadt@
Diffstat (limited to 'include')
-rw-r--r--include/string.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h
index 137a3af01fc..033ee1481a5 100644
--- a/include/string.h
+++ b/include/string.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: string.h,v 1.25 2013/04/11 03:08:47 guenther Exp $ */
+/* $OpenBSD: string.h,v 1.26 2013/05/13 10:37:02 ajacoutot Exp $ */
/* $NetBSD: string.h,v 1.6 1994/10/26 00:56:30 cgd Exp $ */
/*-
@@ -126,6 +126,7 @@ char *strsignal(int);
#endif
#if __BSD_VISIBLE
+void *memmem(const void *, size_t, const void *, size_t);
void *memrchr(const void *, int, size_t);
char *strcasestr(const char *, const char *);
size_t strlcat(char *, const char *, size_t)