From d8cffac6a078a9417903b9b717677bb101642259 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 28 Jul 2016 05:00:31 -0400 Subject: argv.h: no need to #include --- src/internal/argv/argv.h | 1 - src/try.c | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/try.c (limited to 'src') diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h index e3b891f..422d059 100644 --- a/src/internal/argv/argv.h +++ b/src/internal/argv/argv.h @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include 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; +} -- cgit v1.2.3