Back to index

glibc  2.9
argp-ex1.c
Go to the documentation of this file.
00001 /* Argp example #1 -- a minimal program using argp */
00002 
00003 /* This is (probably) the smallest possible program that
00004    uses argp.  It won't do much except give an error
00005    messages and exit when there are any arguments, and print
00006    a (rather pointless) messages for --help.  */
00007 
00008 #include <argp.h>
00009 
00010 int main (int argc, char **argv)
00011 {
00012   argp_parse (0, argc, argv, 0, 0, 0);
00013   exit (0);
00014 }