summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-28 05:00:31 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:50 -0500
commit3ff743450a57083ed2087d935d5f4fa5d54a9257 (patch)
tree6e3727056b7eb7a5dc53ec74268a37727248c71c
parent5d92f21a0730906aa47981d77093fffe8b3717b5 (diff)
downloadperk-3ff743450a57083ed2087d935d5f4fa5d54a9257.tar.bz2
perk-3ff743450a57083ed2087d935d5f4fa5d54a9257.tar.xz
argv.h: no need to #include <errno.h>
-rw-r--r--src/internal/argv/argv.h1
-rw-r--r--src/try.c8
2 files changed, 8 insertions, 1 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h
index c7c9113..d3af384 100644
--- a/src/internal/argv/argv.h
+++ b/src/internal/argv/argv.h
@@ -11,7 +11,6 @@
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
-#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/src/try.c b/src/try.c
new file mode 100644
index 0000000..33a7188
--- /dev/null
+++ b/src/try.c
@@ -0,0 +1,8 @@
+#define ARGV_DRIVER
+#include "argv/argv.h"
+
+int foo(char ** argv, const struct argv_option * options,unsigned int flags, char * header, char * arg)
+{
+ argv_usage(0,header,options,arg);
+ return argv_get(argv,options,flags) ? 0 : -1;
+}