diff options
author | midipix <writeonce@midipix.org> | 2016-07-28 05:00:31 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-28 05:00:31 -0400 |
commit | 433b7b8fc7b4072cecc0a95715d57309280a8d8f (patch) | |
tree | bda6409aa913737dde6e28c7bd648d9de1f89e44 | |
parent | eac00bec51115de9fae2abe23963dffb3409c8fd (diff) | |
download | sofort-433b7b8fc7b4072cecc0a95715d57309280a8d8f.tar.bz2 sofort-433b7b8fc7b4072cecc0a95715d57309280a8d8f.tar.xz |
argv.h: no need to #include <errno.h>
-rw-r--r-- | src/internal/argv/argv.h | 1 | ||||
-rw-r--r-- | src/try.c | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h index d1ef9de..9972796 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; +} |