Rizin
unix-like reverse engineering framework and cli tools
getopt1.c File Reference
#include "getopt.h"
#include <stdio.h>

Go to the source code of this file.

Macros

#define GETOPT_INTERFACE_VERSION   2
 

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)
 

Macro Definition Documentation

◆ GETOPT_INTERFACE_VERSION

#define GETOPT_INTERFACE_VERSION   2

Definition at line 45 of file getopt1.c.

Function Documentation

◆ getopt_long()

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

Definition at line 63 of file getopt1.c.

69 {
70  return _getopt_internal (argc, argv, options, long_options, opt_index, 0);
71 }
static static fork const void static count static fd const char const char static newpath char char argv
Definition: sflib.h:40
static const char struct stat static buf struct stat static buf static vhangup int options
Definition: sflib.h:145
int _getopt_internal(int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only)
Definition: getopt.c:514

References _getopt_internal(), argv, and options.

◆ getopt_long_only()

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

Definition at line 79 of file getopt1.c.

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

References _getopt_internal(), argv, and options.