]> git.ozlabs.org Git - ccan/blob - ccan/order/_info
5a68f674c9d9c4deb24ae331592329d3480cd194
[ccan] / ccan / order / _info
1 #include "config.h"
2 #include <stdio.h>
3 #include <string.h>
4
5 /**
6  * order - Simple, common value comparison functions
7  *
8  * This implements a number of commonly useful comparison functions in
9  * a form which can be used with qsort() and bsearch() in the standard
10  * library, or asort() and asearch() in ccan amongst other places.
11  *
12  * License: CC0
13  * Author: David Gibson <david@gibson.dropbear.id.au>
14  */
15 int main(int argc, char *argv[])
16 {
17         /* Expect exactly one argument */
18         if (argc != 2)
19                 return 1;
20
21         if (strcmp(argv[1], "depends") == 0) {
22                 printf("ccan/typesafe_cb\n");
23                 return 0;
24         }
25         if (strcmp(argv[1], "testdepends") == 0) {
26                 return 0;
27         }
28
29         return 1;
30 }