57 extern int getopt_long (
int argc,
char *
const argv[],
const char *optstring,
58 const struct option *longopts,
int *longindex );
70 static inline int getopt (
int argc,
char *
const argv[],
71 const char *optstring ) {
72 static const struct option no_options[] = {
A long option, as used for getopt_long()
int optopt
Unrecognised option.
getopt_argument_requirement
const char * name
Long name of this option.
Option does not take an argument.
char * optarg
Option argument.
static void reset_getopt(void)
Reset getopt() internal state.
int optind
Current option index.
int * flag
Location into which to store val, or NULL.
static int getopt(int argc, char *const argv[], const char *optstring)
Parse command-line options.
Option requires an argument.
int nextchar
Current option character index.
Option may have an argument.
int has_arg
Option takes an argument.
int getopt_long(int argc, char *const argv[], const char *optstring, const struct option *longopts, int *longindex)
Parse command-line options.
#define NULL
NULL pointer (VOID *)
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)