summaryrefslogtreecommitdiff
path: root/sgetopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'sgetopt.h')
-rw-r--r--sgetopt.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/sgetopt.h b/sgetopt.h
new file mode 100644
index 0000000..bf8bce6
--- /dev/null
+++ b/sgetopt.h
@@ -0,0 +1,23 @@
1/* Public domain. */
2
3#ifndef SGETOPT_H
4#define SGETOPT_H
5
6#ifndef SGETOPTNOSHORT
7#define getopt sgetoptmine
8#define optarg subgetoptarg
9#define optind subgetoptind
10#define optpos subgetoptpos
11#define opterr sgetopterr
12#define optproblem subgetoptproblem
13#define optprogname sgetoptprogname
14#define opteof subgetoptdone
15#endif
16
17#include "subgetopt.h"
18
19extern int sgetoptmine(int,const char *const *,const char *);
20extern int sgetopterr;
21extern const char *sgetoptprogname;
22
23#endif