6 * str - string helper routines
8 * This is a grab bag of functions for string operations, designed to enhance
9 * the standard string.h.
13 * #include <ccan/str/str.h>
15 * int main(int argc, char *argv[])
17 * if (argv[1] && streq(argv[1], "--verbose"))
18 * printf("verbose set\n");
19 * if (argv[1] && strstarts(argv[1], "--"))
20 * printf("Some option set\n");
21 * if (argv[1] && strends(argv[1], "cow-powers"))
22 * printf("Magic option set\n");
26 * License: LGPL (2 or any later version)
27 * Author: Rusty Russell <rusty@rustcorp.com.au>
29 int main(int argc, char *argv[])
34 if (strcmp(argv[1], "depends") == 0) {