Functions | Variables
getopt.c File Reference
#include "getopt.h"
#include <stddef.h>
#include <string.h>
Include dependency graph for getopt.c:

Go to the source code of this file.


int getopt (int argc, char *const argv[], const char *optstring)
int getopt_long (int argc, char *const argv[], const char *optstring, const struct option *longopts, int *longindex)


const int no_argument = 0
char * optarg
static char * optcursor = NULL
int opterr
int optind = 1
const int optional_argument = 2
int optopt
const int required_argument = 1

Function Documentation

int getopt ( int  argc,
char *const  argv[],
const char *  optstring 

Definition at line 52 of file getopt.c.

int getopt_long ( int  argc,
char *const  argv[],
const char *  optstring,
const struct option longopts,
int *  longindex 

Definition at line 158 of file getopt.c.

Variable Documentation

const int no_argument = 0

Definition at line 32 of file getopt.c.

char* optarg

Definition at line 36 of file getopt.c.

char* optcursor = NULL

Definition at line 42 of file getopt.c.

int opterr

Definition at line 40 of file getopt.c.

int optind = 1

Definition at line 39 of file getopt.c.

const int optional_argument = 2

Definition at line 34 of file getopt.c.

int optopt

Definition at line 37 of file getopt.c.

const int required_argument = 1

Definition at line 33 of file getopt.c.

Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:25