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
;
20
}
RzGetopt
;
21
22
RZ_API
void
rz_getopt_init
(
RzGetopt
*go,
int
argc,
const
char
**
argv
,
const
char
*ostr);
23
RZ_API
int
rz_getopt_next
(
RzGetopt
*opt);
24
25
#ifdef __cplusplus
26
}
27
#endif
28
29
#endif
RZ_API
#define RZ_API
Definition:
core_plugin_example.c:36
argv
static static fork const void static count static fd const char const char static newpath char char argv
Definition:
sflib.h:40
rz_getopt_init
RZ_API void rz_getopt_init(RzGetopt *go, int argc, const char **argv, const char *ostr)
Definition:
getopt.c:17
rz_getopt_next
RZ_API int rz_getopt_next(RzGetopt *opt)
Definition:
getopt.c:29
RzGetopt
struct rz_getopt_t RzGetopt
rz_util.h
rz_getopt_t
Definition:
rz_getopt.h:10
rz_getopt_t::opt
int opt
Definition:
rz_getopt.h:13
rz_getopt_t::err
int err
Definition:
rz_getopt.h:11
rz_getopt_t::argc
int argc
Definition:
rz_getopt.h:17
rz_getopt_t::ostr
const char * ostr
Definition:
rz_getopt.h:19
rz_getopt_t::ind
int ind
Definition:
rz_getopt.h:12
rz_getopt_t::reset
int reset
Definition:
rz_getopt.h:14
rz_getopt_t::argv
const char ** argv
Definition:
rz_getopt.h:18
rz_getopt_t::arg
const char * arg
Definition:
rz_getopt.h:15
librz
include
rz_getopt.h
Generated by
1.9.1