]> git.ozlabs.org Git - ccan/blob - ccan/mem/_info
19b22287fcc713694cbad4a658b367eb66f01623
[ccan] / ccan / mem / _info
1 #include "config.h"
2 #include <stdio.h>
3 #include <string.h>
4
5 /**
6  * mem - Provide mem*() functions if missing from C library
7  *
8  * This code implements some string.h mem*() functions if they're not
9  * already available in the C library.  Functions included are:
10  *      memmem()
11  *
12  * License: CC0
13  */
14 int main(int argc, char *argv[])
15 {
16         /* Expect exactly one argument */
17         if (argc != 2)
18                 return 1;
19
20         if (strcmp(argv[1], "depends") == 0) {
21                 return 0;
22         }
23
24         if (strcmp(argv[1], "testdepends") == 0) {
25                 printf("ccan/array_size");
26                 return 0;
27         }
28
29         return 1;
30 }