rtl433  UNKNOWN
RTL-433 utility
getopt.c File Reference

Enumerations

enum  { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER }
 

Functions

char * getenv ()
 
static char * my_index (char *str, int chr) const
 
int strlen (const char *)
 
static void exchange (char **)
 
static const char * _getopt_initialize (int, char *const *, const char *)
 
int _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only)
 
int getopt (int argc, char *const *argv, const char *optstring)
 
int main (int argc, char **argv)
 

Variables

char * optarg
 
int optind = 1
 
int __getopt_initialized
 
static char * nextchar
 
int opterr = 1
 
int optopt = '?'
 
static enum { ... }  ordering
 
static char * posixly_correct
 
static int first_nonopt
 
static int last_nonopt
 
int __libc_argc
 
char ** __libc_argv
 
char * __getopt_nonoption_flags
 
static int nonoption_flags_max_len
 
static int nonoption_flags_len
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
REQUIRE_ORDER 
PERMUTE 
RETURN_IN_ORDER 

Function Documentation

◆ _getopt_initialize()

static const char * _getopt_initialize ( int  argc,
char *const *  argv,
const char *  optstring 
)
static

◆ _getopt_internal()

int _getopt_internal ( int  argc,
char *const *  argv,
const char *  optstring,
const struct option longopts,
int *  longind,
int  long_only 
)

◆ exchange()

static void exchange ( char **  argv)
static

◆ getenv()

◆ getopt()

int getopt ( int  argc,
char *const *  argv,
const char *  optstring 
)

References _getopt_internal().

Referenced by hasopt(), main(), and parse_conf_args().

◆ main()

int main ( int  argc,
char **  argv 
)

References getopt(), optarg, and optind.

◆ my_index()

static char* my_index ( char *  str,
int  chr 
) const
static

References strlen().

Referenced by _getopt_internal().

◆ strlen()

Variable Documentation

◆ __getopt_initialized

int __getopt_initialized

Referenced by _getopt_internal().

◆ __getopt_nonoption_flags

char* __getopt_nonoption_flags

Referenced by _getopt_initialize(), and exchange().

◆ __libc_argc

int __libc_argc

Referenced by _getopt_initialize().

◆ __libc_argv

char** __libc_argv

Referenced by _getopt_initialize().

◆ first_nonopt

int first_nonopt
static

◆ last_nonopt

int last_nonopt
static

◆ nextchar

char* nextchar
static

◆ nonoption_flags_len

int nonoption_flags_len
static

Referenced by _getopt_initialize(), and exchange().

◆ nonoption_flags_max_len

int nonoption_flags_max_len
static

Referenced by _getopt_initialize(), and exchange().

◆ optarg

char* optarg

◆ opterr

int opterr = 1

Referenced by _getopt_internal().

◆ optind

◆ optopt

int optopt = '?'

◆ ordering

enum { ... } ordering

◆ posixly_correct

char* posixly_correct
static