Back to index

cell-binutils  2.17cvs20070401
Defines | Functions
getopt1.c File Reference
#include <stdio.h>
#include "getopt.h"

Go to the source code of this file.

Defines

#define const
#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_only (int argc, char *const *argv, const char *options, const struct option *long_options, int *opt_index)

Define Documentation

#define const

Definition at line 31 of file getopt1.c.

#define GETOPT_INTERFACE_VERSION   2

Definition at line 47 of file getopt1.c.

#define NULL   0

Definition at line 65 of file getopt1.c.


Function Documentation

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

Definition at line 69 of file getopt1.c.

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

Here is the call 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 81 of file getopt1.c.

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

Here is the call graph for this function: