summaryrefslogtreecommitdiff
path: root/win32/getopt/getopt.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-07-31 09:15:02 -0700
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-07-31 09:15:02 -0700
commitee0ffcb7bcb46d3d129bd262781d54afa736ffbb (patch)
tree5487ca31e509664ed938fa474d420f1ee46bccdd /win32/getopt/getopt.h
parent3afee2ec57f662bd06a1da7794ce08f0504da2a0 (diff)
Adding getopt to Balau for win32.
Diffstat (limited to 'win32/getopt/getopt.h')
-rw-r--r--win32/getopt/getopt.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/win32/getopt/getopt.h b/win32/getopt/getopt.h
new file mode 100644
index 0000000..f77cb17
--- /dev/null
+++ b/win32/getopt/getopt.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int getopt(int nargc, char ** nargv, char * ostr);
+
+#ifdef __cplusplus
+}
+#endif
+
+
+extern int opterr = 1;
+extern int optind = 1;
+extern int optopt;
+extern char * optarg;