]> git.ozlabs.org Git - ccan/blob - ccan/order/_info
take, tal, tal/path, tal/str, tal/talloc: annotate APIs with TAKES.
[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                 printf("ccan/ptrint\n");
24                 return 0;
25         }
26         if (strcmp(argv[1], "testdepends") == 0) {
27                 printf("ccan/array_size\n");
28                 printf("ccan/asort\n");
29                 return 0;
30         }
31
32         return 1;
33 }