OpenCOBOL 1.1pre-rel
Defines | Functions
getopt1.c File Reference
#include "getopt.h"
#include <stdio.h>
Include dependency graph for getopt1.c:

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 35 of file getopt1.c.

#define GETOPT_INTERFACE_VERSION   2

Definition at line 49 of file getopt1.c.

#define NULL   0

Definition at line 67 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 71 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 87 of file getopt1.c.

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

Here is the call graph for this function:

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines