php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_getopt.h File Reference
#include "php.h"

Go to the source code of this file.

Data Structures

struct  _opt_struct
 

Macros

#define PHP_GETOPT_INVALID_ARG   (-2)
 

Typedefs

typedef struct _opt_struct opt_struct
 

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
 

Macro Definition Documentation

◆ PHP_GETOPT_INVALID_ARG

#define PHP_GETOPT_INVALID_ARG   (-2)

Definition at line 37 of file php_getopt.h.

Typedef Documentation

◆ opt_struct

typedef struct _opt_struct opt_struct

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
extern

Definition at line 53 of file getopt.c.