summary refs log tree commit diff
path: root/manual/examples/argp-ex1.c
diff options
context:
space:
mode:
Diffstat (limited to 'manual/examples/argp-ex1.c')
-rw-r--r--manual/examples/argp-ex1.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/manual/examples/argp-ex1.c b/manual/examples/argp-ex1.c
new file mode 100644
index 0000000000..c87ebbb532
--- /dev/null
+++ b/manual/examples/argp-ex1.c
@@ -0,0 +1,9 @@
+/* Argp example #1 -- a minimal program using argp */
+
+#include <argp.h>
+
+int main (int argc, char **argv)
+{
+  argp_parse (0, argc, argv, 0, 0, 0);
+  exit (0);
+}