Back to index

glibc  2.9
Defines | Functions
getopt1.c File Reference
#include "getopt.h"
#include "getopt_int.h"
#include <stdio.h>

Go to the source code of this file.

Defines

#define GETOPT_INTERFACE_VERSION   2
#define NULL   0

Functions

int getopt_long (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index)
int _getopt_long_r (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index, struct _getopt_data *d)
int getopt_long_only (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index)
int _getopt_long_only_r (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index, struct _getopt_data *d)

Define Documentation

#define GETOPT_INTERFACE_VERSION   2

Definition at line 42 of file getopt1.c.

#define NULL   0

Definition at line 60 of file getopt1.c.


Function Documentation

int _getopt_long_only_r ( int  argc,
char *const argv,
const char *  options,
const struct option long_options,
int opt_index,
struct _getopt_data d 
)

Definition at line 92 of file getopt1.c.

{
  return _getopt_internal_r (argc, argv, options, long_options, opt_index,
                          1, d);
}

Here is the call graph for this function:

Here is the caller graph for this function:

int _getopt_long_r ( int  argc,
char *const argv,
const char *  options,
const struct option long_options,
int opt_index,
struct _getopt_data d 
)

Definition at line 71 of file getopt1.c.

{
  return _getopt_internal_r (argc, argv, options, long_options, opt_index,
                          0, d);
}

Here is the call graph for this function:

Here is the caller graph for this function:

int getopt_long ( int  argc,
char *const argv,
const char *  options,
const struct option long_options,
int opt_index 
)

Definition at line 64 of file getopt1.c.

{
  return _getopt_internal (argc, argv, options, long_options, opt_index, 0);
}

Here is the call graph for this function:

Here is the caller graph for this function:

int getopt_long_only ( int  argc,
char *const argv,
const char *  options,
const struct option long_options,
int opt_index 
)

Definition at line 85 of file getopt1.c.

{
  return _getopt_internal (argc, argv, options, long_options, opt_index, 1);
}

Here is the call graph for this function:

Here is the caller graph for this function: