summaryrefslogtreecommitdiff
path: root/include/getoptb.h
blob: 61fa7aa89fe96ba2cea3eace512dca72da6cc7c6 (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