7#ifndef ZEPHYR_INCLUDE_SYS_GETOPT_H_
8#define ZEPHYR_INCLUDE_SYS_GETOPT_H_
37#define sys_getopt_no_argument 0
38#define sys_getopt_required_argument 1
39#define sys_getopt_optional_argument 2
74int sys_getopt(
int nargc,
char *
const nargv[],
const char *ostr);
Definition sys_getopt.h:41
int has_arg
Definition sys_getopt.h:48
const char * name
Definition sys_getopt.h:43
int * flag
Definition sys_getopt.h:50
int val
Definition sys_getopt.h:52
Definition sys_getopt.h:16
int opterr
Definition sys_getopt.h:17
char * optarg
Definition sys_getopt.h:21
char * place
Definition sys_getopt.h:23
int optreset
Definition sys_getopt.h:20
int optind
Definition sys_getopt.h:18
int optopt
Definition sys_getopt.h:19
int sys_getopt(int nargc, char *const nargv[], const char *ostr)
Parses the command-line arguments.
int sys_getopt_long(int nargc, char *const *nargv, const char *options, const struct sys_getopt_option *long_options, int *idx)
Parses the command-line arguments.
int sys_getopt_long_only(int nargc, char *const *nargv, const char *options, const struct sys_getopt_option *long_options, int *idx)
Parses the command-line arguments.
void sys_getopt_init(void)
struct sys_getopt_state * sys_getopt_state_get(void)