6 * err - err(), errx(), warn() and warnx(), as per BSD's err.h.
8 * A few platforms don't provide err.h; for those, this provides replacements.
9 * For most, it simple includes the system err.h.
11 * Unfortunately, you have to call err_set_progname() to tell the replacements
12 * your program name, otherwise it prints "unknown program".
15 * #include <ccan/err/err.h>
17 * int main(int argc, char *argv[])
19 * err_set_progname(argv[0]);
21 * errx(1, "Expect no arguments");
25 * License: Public domain
26 * Author: Rusty Russell <rusty@rustcorp.com.au>
28 int main(int argc, char *argv[])
33 if (strcmp(argv[1], "depends") == 0) {
35 printf("ccan/compiler\n");