cvs commit: src/include string.h src/lib/libc/string Makefile.inc
memchr.3 memmem.3 memmem.c strchr.3 strstr.3
Andre Oppermann
andre at FreeBSD.org
Thu Aug 25 18:26:59 GMT 2005
andre 2005-08-25 18:26:58 UTC
FreeBSD src repository
Modified files:
include string.h
lib/libc/string Makefile.inc memchr.3 strchr.3 strstr.3
Added files:
lib/libc/string memmem.3 memmem.c
Log:
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
Revision Changes Path
1.22 +1 -0 src/include/string.h
1.36 +5 -5 src/lib/libc/string/Makefile.inc
1.8 +2 -1 src/lib/libc/string/memchr.3
1.1 +84 -0 src/lib/libc/string/memmem.3 (new)
1.1 +67 -0 src/lib/libc/string/memmem.c (new)
1.12 +1 -0 src/lib/libc/string/strchr.3
1.13 +1 -0 src/lib/libc/string/strstr.3
More information about the cvs-src
mailing list