mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 21:10:07 +00:00
17 lines
403 B
C
17 lines
403 B
C
/* Argp example #1 -- a minimal program using argp */
|
|
|
|
/* This is (probably) the smallest possible program that
|
|
uses argp. It won't do much except give an error
|
|
messages and exit when there are any arguments, and print
|
|
a (rather pointless) messages for --help. */
|
|
|
|
#include <stdlib.h>
|
|
#include <argp.h>
|
|
|
|
int
|
|
main (int argc, char **argv)
|
|
{
|
|
argp_parse (0, argc, argv, 0, 0, 0);
|
|
exit (0);
|
|
}
|