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