]> git.ozlabs.org Git - ccan/blob - ccan/memmem/_info
5c736a9c7dde049d86e5457c40101cb2f0a6f5da
[ccan] / ccan / memmem / _info
1 #include <string.h>
2 #include "config.h"
3
4 /**
5  * memmem - Trivial module providing a memmem() implementation
6  *
7  * This code implements memmem() if it's not alreayd available in the
8  * C library.
9  *
10  * License: CC0
11  */
12 int main(int argc, char *argv[])
13 {
14         /* Expect exactly one argument */
15         if (argc != 2)
16                 return 1;
17
18         if (strcmp(argv[1], "depends") == 0) {
19                 return 0;
20         }
21
22         if (strcmp(argv[1], "testdepends") == 0) {
23                 printf("ccan/array_size");
24                 return 0;
25         }
26
27         return 1;
28 }