summaryrefslogtreecommitdiff
path: root/include/getoptb.h
blob: 426567d064c27a1765a0036281d53bdec0356e10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef BGETOPT_H
#define BGETOPT_H

/*
 * Revision 20160714, Kai Peter
 * - consolidated 'sgetopt.h' and 'subgetopt.h' into '(b)getopt.h'
 */

#define optarg      subgetoptarg
#define optind      subgetoptind
#define optpos      subgetoptpos
#define optproblem  subgetoptproblem
#define optprogname subgetoptprogname
#define opteof      subgetoptdone

#define SUBGETOPTDONE -1

extern int subgetopt(int, char **, char *);
extern char *subgetoptarg;
extern int subgetoptind;
extern int subgetoptpos;
extern int subgetoptproblem;
extern char *subgetoptprogname;
extern int subgetoptdone;

extern int opterr;

#endif