* sysdeps/posix/libc_fatal.c (__libc_message): Add a const, a cast.
[glibc.git] / manual / examples / argp-ex1.c
blob50ac0ed9788bfe010aff3ae484c9cf14eef9c3ea
1 /* Argp example #1 -- a minimal program using argp */
3 /* This is (probably) the smallest possible program that
4 uses argp. It won't do much except give an error
5 messages and exit when there are any arguments, and print
6 a (rather pointless) messages for --help. */
8 #include <argp.h>
10 int main (int argc, char **argv)
12 argp_parse (0, argc, argv, 0, 0, 0);
13 exit (0);