mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-26 07:44:29 +00:00
22 lines
353 B
C
22 lines
353 B
C
#ifndef R_GETOPT_H
|
|
#define R_GETOPT_H 1
|
|
|
|
#include <r_util.h>
|
|
|
|
typedef struct r_getopt_t {
|
|
int err;
|
|
int ind;
|
|
int opt;
|
|
int reset;
|
|
const char *arg;
|
|
// ...
|
|
int argc;
|
|
const char **argv;
|
|
const char *ostr;
|
|
} RGetopt;
|
|
|
|
R_API void r_getopt_init(RGetopt *go, int argc, const char **argv, const char *ostr);
|
|
R_API int r_getopt_next(RGetopt *opt);
|
|
|
|
#endif
|