aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/getopt/getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'host/examples/getopt/getopt.h')
-rw-r--r--host/examples/getopt/getopt.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/host/examples/getopt/getopt.h b/host/examples/getopt/getopt.h
new file mode 100644
index 000000000..ada96ecf0
--- /dev/null
+++ b/host/examples/getopt/getopt.h
@@ -0,0 +1,19 @@
+/*
+ * This header is for a function released into the public domain
+ * by AT&T in 1985. See the newsgroup posting:
+ *
+ * Newsgroups: mod.std.unix
+ * Subject: public domain AT&T getopt source
+ * Date: 3 Nov 85 19:34:15 GMT
+ */
+#ifndef _GETOPT_H_
+#define _GETOPT_H_
+
+extern int optarr;
+extern int optind;
+extern int optopt;
+extern char* optarg;
+
+int getopt(int argc, char **argv, char *opts);
+
+#endif /* _GETOPT_H_ */