* Rename R2_ -> RZ_ * Rename R_ -> RZ_ * Rename R2R_ -> RZ_TEST_ * Rename R2R defines and types to RZ_TEST/RzTest * Keep R_ for REIL registers
21 lines
364 B
C
21 lines
364 B
C
#ifndef RZ_GETOPT_H
|
|
#define RZ_GETOPT_H 1
|
|
|
|
#include <rz_util.h>
|
|
|
|
typedef struct rz_getopt_t {
|
|
int err;
|
|
int ind;
|
|
int opt;
|
|
int reset;
|
|
const char *arg;
|
|
// ...
|
|
int argc;
|
|
const char **argv;
|
|
const char *ostr;
|
|
} RzGetopt;
|
|
|
|
RZ_API void rz_getopt_init(RzGetopt *go, int argc, const char **argv, const char *ostr);
|
|
RZ_API int rz_getopt_next(RzGetopt *opt);
|
|
|
|
#endif
|