uvgVPCCenc 1.0.0
uvgVPCCenc is an open-source real-time V-PCC encoder library written in C++ from scratch.
Loading...
Searching...
No Matches
Macros | Functions | Variables
getopt.c File Reference
#include <assert.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "getopt.h"
Include dependency graph for getopt.c:

Macros

#define _DIAGASSERT(e)
 
#define IGNORE_FIRST   (*options == '-' || *options == '+')
 
#define PRINT_ERROR
 
#define IS_POSIXLY_CORRECT   (getenv("POSIXLY_CORRECT") != NULL)
 
#define PERMUTE   (!IS_POSIXLY_CORRECT && !IGNORE_FIRST)
 
#define IN_ORDER   (!IS_POSIXLY_CORRECT && *options == '-')
 
#define BADCH   (int)'?'
 
#define BADARG   (int)':'
 
#define INORDER   (int)1
 
#define EMSG   ""
 

Functions

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

Variables

char * optarg = 0
 
int optind = 1
 
int opterr = 1
 
int optopt = 0
 
int optreset = 0
 

Macro Definition Documentation

◆ _DIAGASSERT

#define _DIAGASSERT (   e)

◆ BADARG

#define BADARG   (int)':'

◆ BADCH

#define BADCH   (int)'?'

◆ EMSG

#define EMSG   ""

◆ IGNORE_FIRST

#define IGNORE_FIRST   (*options == '-' || *options == '+')

◆ IN_ORDER

#define IN_ORDER   (!IS_POSIXLY_CORRECT && *options == '-')

◆ INORDER

#define INORDER   (int)1

◆ IS_POSIXLY_CORRECT

#define IS_POSIXLY_CORRECT   (getenv("POSIXLY_CORRECT") != NULL)

◆ PERMUTE

#define PERMUTE   (!IS_POSIXLY_CORRECT && !IGNORE_FIRST)

◆ PRINT_ERROR

#define PRINT_ERROR
Value:
((opterr) && ((*options != ':') \
|| (IGNORE_FIRST && options[1] != ':')))
#define IGNORE_FIRST
Definition getopt.c:50
int opterr
Definition getopt.c:89

Function Documentation

◆ getopt_long()

int getopt_long ( int  nargc,
char *const *  nargv,
const char *  options,
const struct option long_options,
int *  idx 
)
Here is the caller graph for this function:

Variable Documentation

◆ optarg

char* optarg = 0

◆ opterr

int opterr = 1

◆ optind

int optind = 1

◆ optopt

int optopt = 0

◆ optreset

int optreset = 0