option Struct Reference

#include <stdapis/getopt.h>

struct option
Public Attributes
int *flag
inthas_arg
const char *name
intval

Detailed Description

Includes following members,

Member Attribute Documentation

flag

int *flag

if not NULL, set flag to val when option found

has_arg

inthas_arg

one of no_argument, required_argument, and optional_argument: whether option takes an argument

name

const char *name

name of long option

val

intval

if flag not NULL, value to set flag to; else return value