summaryrefslogtreecommitdiff
path: root/sgetopt.h
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2015-05-08 23:07:47 -0400
committerjoe <joe@jerkface.net>2015-05-08 23:07:47 -0400
commit220534453eecc2c07ad710d72268aafd20b83138 (patch)
tree469bd5db135e31b7ea908152aa3389b9b1e06d5b /sgetopt.h
initial commit
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