memmem: Trivial module to provide memmem() function
authorDavid Gibson <david@gibson.dropbear.id.au>
Sat, 14 Jun 2014 16:11:25 +0000 (02:11 +1000)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 16 Jun 2014 11:42:43 +0000 (21:12 +0930)
commit1db16ab68ecaba42daa8e0a38102c04399146f5e
treed3c2ae218b9a1fd45dc2d38582646dfcb9983ba1
parent23636f5911d564fb3a74a49d122a5270d82aaa88
memmem: Trivial module to provide memmem() function

glibc includes a memmem() function which, by analogy with strstr()
searches for a byte sequence within a larger byte sequence.  The function
isn't standard, however, so other C libraries may not include it.

This adds a trivial module providing the memmem() function, if the C
library doesn't already do so.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Makefile-ccan
ccan/memmem/LICENSE [new symlink]
ccan/memmem/_info [new file with mode: 0644]
ccan/memmem/memmem.c [new file with mode: 0644]
ccan/memmem/memmem.h [new file with mode: 0644]
ccan/memmem/test/run.c [new file with mode: 0644]