Back to index

tetex-bin  3.0
Defines | Functions
getopt1.c File Reference
#include "getopt.h"
#include <stdio.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 32 of file getopt1.c.

#define GETOPT_INTERFACE_VERSION   2

Definition at line 46 of file getopt1.c.

#define NULL   0

Definition at line 64 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 68 of file getopt1.c.

{
  return _getopt_internal (argc, argv, options, long_options, opt_index, 0);
}
int getopt_long_only ( int  argc,
char *const argv,
const char *  options,
const struct option long_options,
int opt_index 
)

Definition at line 84 of file getopt1.c.

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