MeteoIODoc 2.11.0
getopt.h File Reference
#include <crtdefs.h>

Go to the source code of this file.

Classes

struct  option
 

Macros

#define __GETOPT_H__
 
#define __GETOPT_LONG_H__
 
#define HAVE_DECL_GETOPT   1
 

Enumerations

enum  { no_argument = 0 , required_argument , optional_argument }
 

Functions

int getopt (int nargc, char *const *nargv, const char *options)
 
int getopt_long (int nargc, char *const *nargv, const char *options, const struct option *long_options, int *idx)
 
int getopt_long_only (int nargc, char *const *nargv, const char *options, const struct option *long_options, int *idx)
 

Variables

int optind
 
int optopt
 
int opterr
 
char * optarg
 

Class Documentation

◆ option

struct option
Class Members
int * flag
int has_arg
const char * name
int val

Macro Definition Documentation

◆ __GETOPT_H__

#define __GETOPT_H__

DISCLAIMER This file has no copyright assigned and is placed in the Public Domain. This file is part of the mingw-w64 runtime package.

The mingw-w64 runtime package and its code is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESSED OR IMPLIED ARE HEREBY DISCLAIMED. This includes but is not limited to warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

◆ __GETOPT_LONG_H__

#define __GETOPT_LONG_H__

◆ HAVE_DECL_GETOPT

#define HAVE_DECL_GETOPT   1

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
no_argument 
required_argument 
optional_argument 

Function Documentation

◆ getopt()

int getopt ( int  nargc,
char *const *  nargv,
const char *  options 
)

◆ getopt_long()

int getopt_long ( int  nargc,
char *const *  nargv,
const char *  options,
const struct option long_options,
int *  idx 
)

◆ getopt_long_only()

int getopt_long_only ( int  nargc,
char *const *  nargv,
const char *  options,
const struct option long_options,
int *  idx 
)

Variable Documentation

◆ optarg

char* optarg
extern

◆ opterr

int opterr
extern

◆ optind

int optind
extern

◆ optopt

int optopt
extern