Macros | Functions | Variables
getopt.c File Reference
#include "getopt.h"
#include <stdio.h>
#include <string.h>
Include dependency graph for getopt.c:

Go to the source code of this file.

Macros

#define ERR(s, c)
 

Functions

int getopt (int argc, char **argv, char *opts)
 

Variables

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

Macro Definition Documentation

◆ ERR

#define ERR (   s,
 
)
Value:
if (opterr) { \
fputs (argv[0], stderr); \
fputs (s, stderr); \
fputc (c, stderr); \
} \

Definition at line 19 of file getopt.c.

Function Documentation

◆ getopt()

int getopt ( int  argc,
char **  argv,
char *  opts 
)

Definition at line 31 of file getopt.c.

Variable Documentation

◆ optarg

char* optarg

Definition at line 29 of file getopt.c.

◆ opterr

int opterr = 1

Definition at line 26 of file getopt.c.

◆ optind

int optind = 1

Definition at line 27 of file getopt.c.

◆ optopt

int optopt

Definition at line 28 of file getopt.c.

opterr
int opterr
Definition: getopt.c:26


multisense_lib
Author(s):
autogenerated on Thu Apr 17 2025 02:49:09