]> git.ozlabs.org Git - ccan/blob - ccan/mem/mem.h
mem: Implement memrchr()
[ccan] / ccan / mem / mem.h
1 /* CC0 (Public domain) - see LICENSE file for details */
2 #ifndef CCAN_MEM_H
3 #define CCAN_MEM_H
4
5 #include "config.h"
6
7 #include <string.h>
8
9 #if !HAVE_MEMMEM
10 void *memmem(const void *haystack, size_t haystacklen,
11              const void *needle, size_t needlelen);
12 #endif
13
14 #if !HAVE_MEMRCHR
15 void *memrchr(const void *s, int c, size_t n);
16 #endif
17
18 #endif /* CCAN_MEM_H */