PostgreSQL Source Code: src/include/getopt_long.h Source File (original) (raw)
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10#ifndef GETOPT_LONG_H
11#define GETOPT_LONG_H
12
13#include "pg_getopt.h"
14
15#ifndef HAVE_STRUCT_OPTION
16
18{
23};
24
25#define no_argument 0
26#define required_argument 1
27#define optional_argument 2
28#endif
29
30#ifndef HAVE_GETOPT_LONG
31
32extern int getopt_long(int argc, char *const argv[],
33 const char *optstring,
34 const struct option *longopts, int *longindex);
35#endif
36
37#endif
int getopt_long(int argc, char *const argv[], const char *optstring, const struct option *longopts, int *longindex)