123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef PHP_GETOPT_H
- #define PHP_GETOPT_H
- #include "php.h"
- typedef struct _opt_struct {
- char opt_char;
- int need_param;
- char * opt_name;
- } opt_struct;
- BEGIN_EXTERN_C()
- extern PHPAPI int php_optidx;
- PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *optind, int show_err, int arg_start);
- END_EXTERN_C()
- #define PHP_GETOPT_INVALID_ARG (-2)
- #endif
|