/home/thomas/development/delivery-check/repo/src/getopt/my_getopt.c File Reference

#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "my_getopt.h"
Include dependency graph for my_getopt.c:

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

Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

int my_getopt_reset ( void   ) 

Definition at line 36 of file my_getopt.c.

References my_optarg, my_opterr, my_optind, and my_optopt.


Variable Documentation

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().

Generated on Sun Feb 12 16:44:12 2012 for Simulavr by  doxygen 1.6.3