summaryrefslogtreecommitdiffhomepage
path: root/src/try.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-28 05:00:31 -0400
committermidipix <writeonce@midipix.org>2016-07-28 05:02:02 -0400
commitbd07fc135fdde7c2282a4e5fac232719795334f7 (patch)
treea48a2fb1df2458ba27f41c8614d24f72a55f4420 /src/try.c
parent4f56fd184ef6020626492a6f954a486d54f8b7ba (diff)
downloadslibtool-bd07fc135fdde7c2282a4e5fac232719795334f7.tar.bz2
slibtool-bd07fc135fdde7c2282a4e5fac232719795334f7.tar.xz
argv.h: no need to #include <errno.h>
Diffstat (limited to 'src/try.c')
-rw-r--r--src/try.c8
1 files changed, 8 insertions, 0 deletions
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;
+}