comparison src/c/memmem.c @ 920:7accd4546cf9

Fix memmem() signature; fix mono_reduce environment bookkeeping
author Adam Chlipala <adamc@hcoop.net>
date Tue, 08 Sep 2009 20:12:17 -0400
parents 782f0b4eea67
children 236dc296c32d
comparison
equal deleted inserted replaced
919:cc956020801b 920:7accd4546cf9
54 * memmem() returns the location of the first occurence of data 54 * memmem() returns the location of the first occurence of data
55 * pattern b2 of size len2 in memory block b1 of size len1 or 55 * pattern b2 of size len2 in memory block b1 of size len1 or
56 * NULL if none is found. 56 * NULL if none is found.
57 */ 57 */
58 void * 58 void *
59 memmem(const void *b1, const void *b2, size_t len1, size_t len2) 59 memmem(const void *b1, size_t len1, const void *b2, size_t len2)
60 { 60 {
61 /* Initialize search pointer */ 61 /* Initialize search pointer */
62 char *sp = (char *) b1; 62 char *sp = (char *) b1;
63 63
64 /* Initialize pattern pointer */ 64 /* Initialize pattern pointer */