rizin/librz/include/rz_getopt.h
Riccardo Schirone 502e91aff7
Rename R_ and R2_ to RZ_ (#8)
* Rename R2_ -> RZ_
* Rename R_ -> RZ_
* Rename R2R_ -> RZ_TEST_
* Rename R2R defines and types to RZ_TEST/RzTest
* Keep R_ for REIL registers
2020-10-02 16:09:13 +02:00

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