summaryrefslogtreecommitdiff
path: root/LibC/getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'LibC/getopt.h')
-rw-r--r--LibC/getopt.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/LibC/getopt.h b/LibC/getopt.h
new file mode 100644
index 0000000000..a55f06df52
--- /dev/null
+++ b/LibC/getopt.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
+
+int getopt(int argc, char* const argv[], const char* optstring);
+extern char* optarg;
+extern int optind;
+extern int opterr;
+extern int optopt;
+
+__END_DECLS