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