Rizin
unix-like reverse engineering framework and cli tools
rz_getopt.h
Go to the documentation of this file.
1 #ifndef RZ_GETOPT_H
2 #define RZ_GETOPT_H
3 
4 #include <rz_util.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 typedef struct rz_getopt_t {
11  int err;
12  int ind;
13  int opt;
14  int reset;
15  const char *arg;
16  // ...
17  int argc;
18  const char **argv;
19  const char *ostr;
21 
22 RZ_API void rz_getopt_init(RzGetopt *go, int argc, const char **argv, const char *ostr);
24 
25 #ifdef __cplusplus
26 }
27 #endif
28 
29 #endif
#define RZ_API
static static fork const void static count static fd const char const char static newpath char char argv
Definition: sflib.h:40
RZ_API void rz_getopt_init(RzGetopt *go, int argc, const char **argv, const char *ostr)
Definition: getopt.c:17
RZ_API int rz_getopt_next(RzGetopt *opt)
Definition: getopt.c:29
struct rz_getopt_t RzGetopt
const char * ostr
Definition: rz_getopt.h:19
const char ** argv
Definition: rz_getopt.h:18
const char * arg
Definition: rz_getopt.h:15