aboutsummaryrefslogtreecommitdiff
path: root/sgetopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'sgetopt.h')
-rw-r--r--sgetopt.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/sgetopt.h b/sgetopt.h
new file mode 100644
index 0000000..234a13b
--- /dev/null
+++ b/sgetopt.h
@@ -0,0 +1,21 @@
+#ifndef SGETOPT_H
+#define SGETOPT_H
+
+#ifndef SGETOPTNOSHORT
+#define getopt sgetoptmine
+#define optarg subgetoptarg
+#define optind subgetoptind
+#define optpos subgetoptpos
+#define opterr sgetopterr
+#define optproblem subgetoptproblem
+#define optprogname sgetoptprogname
+#define opteof subgetoptdone
+#endif
+
+#include "subgetopt.h"
+
+extern int sgetoptmine(int,char **,const char *);
+extern int sgetopterr;
+extern const char *sgetoptprogname;
+
+#endif