WvStreams
argp
testsuite
ex1.c
1
/* Argp example #1 - a minimal program using argp */
2
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. */
7
8
#include <argp.h>
9
10
#include <stdlib.h>
11
12
int
main (
int
argc,
char
**argv)
13
{
14
argp_parse (0, argc, argv, 0, 0, 0);
15
exit (0);
16
}
Generated by
1.8.17