Documentation>C API
option Struct Reference

getopt_long option

#include <getopt_long.h>

Data Fields

const char * name
 
int has_arg
 
int * flag
 
int val
 

Field Documentation

◆ flag

int* option::flag

pointer to a variable to set (if NULL, the value is returned instead)

◆ has_arg

int option::has_arg

flag indicating whether the option has no, required or optional argument

◆ name

const char* option::name

option long name

◆ val

int option::val

value to set or to return


The documentation for this struct was generated from the following file: