php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
getopt.c File Reference
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include "php_getopt.h"

Go to the source code of this file.

Macros

#define OPTERRCOLON   (1)
 
#define OPTERRNF   (2)
 
#define OPTERRARG   (3)
 

Functions

PHPAPI int php_getopt (int argc, char *const *argv, const opt_struct opts[], char **optarg, int *optind, int show_err, int arg_start)
 

Variables

PHPAPI int php_optidx = -1
 

Macro Definition Documentation

◆ OPTERRARG

#define OPTERRARG   (3)

Definition at line 25 of file getopt.c.

◆ OPTERRCOLON

#define OPTERRCOLON   (1)

Definition at line 23 of file getopt.c.

◆ OPTERRNF

#define OPTERRNF   (2)

Definition at line 24 of file getopt.c.

Function Documentation

◆ php_getopt()

PHPAPI int php_getopt ( int argc,
char *const * argv,
const opt_struct opts[],
char ** optarg,
int * optind,
int show_err,
int arg_start )

Definition at line 55 of file getopt.c.

Variable Documentation

◆ php_optidx

PHPAPI int php_optidx = -1

Definition at line 53 of file getopt.c.