VLC 4.0.0-dev
getopt.c File Reference
Include dependency graph for getopt.c:

Macros

#define NONOPTION_P   (argv[state->ind][0] != '-' || argv[state->ind][1] == '\0')
 

Functions

static void exchange (char **argv, vlc_getopt_t *restrict state)
 
int vlc_getopt_long (int argc, char *const *argv, const char *optstring, const struct vlc_option *restrict longopts, int *longind, vlc_getopt_t *restrict state)
 

Macro Definition Documentation

◆ NONOPTION_P

#define NONOPTION_P   (argv[state->ind][0] != '-' || argv[state->ind][1] == '\0')

Function Documentation

◆ exchange()

static void exchange ( char **  argv,
vlc_getopt_t *restrict  state 
)
static

References state.

Referenced by vlc_getopt_long().

◆ vlc_getopt_long()

int vlc_getopt_long ( int  argc,
char *const *  argv,
const char *  optstring,
const struct vlc_option *restrict  longopts,
int *  longind,
vlc_getopt_t *restrict  state 
)