summaryrefslogtreecommitdiff
path: root/include/getopt-min.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/getopt-min.h')
-rw-r--r--include/getopt-min.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/getopt-min.h b/include/getopt-min.h
new file mode 100644
index 0000000..9f7729e
--- /dev/null
+++ b/include/getopt-min.h
@@ -0,0 +1,12 @@
+#ifndef GETOPT_MIN_H
+#define GETOPT_MIN_H
+
+int getopt( /* returns letter, '?', EOF */
+ int argc, /* argument count from main */
+ char *const argv[], /* argument vector from main */
+ const FLASH char * optstring ); /* allowed args, e.g. "ab:c" */
+
+extern int optind;
+
+#endif /* GETOPT_MIN_H */
+