Back to index

nagios-plugins  1.4.16
Defines | Functions
getopt1.c File Reference
#include <config.h>
#include "getopt.h"
#include "getopt_int.h"
#include <stdio.h>

Go to the source code of this file.

Defines

#define NULL   0

Functions

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

Define Documentation

#define NULL   0

Definition at line 36 of file getopt1.c.


Function Documentation

int _getopt_long_only_r ( int  argc,
char **  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,
                             1, d, 0);
}

Here is the call graph for this function:

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

Definition at line 48 of file getopt1.c.

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

Here is the call graph for this function:

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

Definition at line 40 of file getopt1.c.

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

Here is the call graph for this function:

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

Definition at line 62 of file getopt1.c.

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

Here is the call graph for this function: