#include <sys/types.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include "my_getopt.h"
Go to the source code of this file.
Functions | |
| int | my_getopt_reset (void) |
| int | my_getopt (int argc, char *argv[], const char *opts) |
| int | _my_getopt_internal (int argc, char *argv[], const char *shortopts, const struct option *longopts, int *longind, int long_only) |
| int | my_getopt_long (int argc, char *argv[], const char *shortopts, const struct option *longopts, int *longind) |
| int | my_getopt_long_only (int argc, char *argv[], const char *shortopts, const struct option *longopts, int *longind) |
Variables | |
| int | my_optind = 1 |
| int | my_opterr = 1 |
| int | my_optopt = 0 |
| char * | my_optarg = 0 |
| int _my_getopt_internal | ( | int | argc, | |
| char * | argv[], | |||
| const char * | shortopts, | |||
| const struct option * | longopts, | |||
| int * | longind, | |||
| int | long_only | |||
| ) |
Definition at line 145 of file my_getopt.c.
References _my_getopt_internal(), option::flag, my_getopt(), my_optarg, my_opterr, my_optind, my_optopt, option::name, and option::val.
Referenced by _my_getopt_internal(), my_getopt_long(), and my_getopt_long_only().


| int my_getopt | ( | int | argc, | |
| char * | argv[], | |||
| const char * | opts | |||
| ) |
Definition at line 49 of file my_getopt.c.
References my_getopt(), my_optarg, my_opterr, my_optind, and my_optopt.
Referenced by _my_getopt_internal(), and my_getopt().


| int my_getopt_long | ( | int | argc, | |
| char * | argv[], | |||
| const char * | shortopts, | |||
| const struct option * | longopts, | |||
| int * | longind | |||
| ) |
Definition at line 271 of file my_getopt.c.
References _my_getopt_internal().

| int my_getopt_long_only | ( | int | argc, | |
| char * | argv[], | |||
| const char * | shortopts, | |||
| const struct option * | longopts, | |||
| int * | longind | |||
| ) |
Definition at line 277 of file my_getopt.c.
References _my_getopt_internal().

| int my_getopt_reset | ( | void | ) |
| char* my_optarg = 0 |
Definition at line 33 of file my_getopt.c.
Referenced by _my_getopt_internal(), my_getopt(), and my_getopt_reset().
| int my_opterr = 1 |
Definition at line 32 of file my_getopt.c.
Referenced by _my_getopt_internal(), my_getopt(), and my_getopt_reset().
| int my_optind = 1 |
Definition at line 32 of file my_getopt.c.
Referenced by _my_getopt_internal(), my_getopt(), and my_getopt_reset().
| int my_optopt = 0 |
Definition at line 32 of file my_getopt.c.
Referenced by _my_getopt_internal(), my_getopt(), and my_getopt_reset().
1.6.3