1 /* 2 Author: Marcus Boerger <helly (at) users.sourceforge.net> 3 */ 4 5 /* Define structure for one recognized option (both single char and long name). 6 * If short_open is '-' this is the last option. 7 */ 8 9 #ifndef RE2C_MBO_GETOPT_H_INCLUDE_GUARD_ 10 #define RE2C_MBO_GETOPT_H_INCLUDE_GUARD_ 11 12 typedef struct mbo_opt_struct 13 { 14 const char opt_char; 15 const int need_param; 16 const char * opt_name; 17 } mbo_opt_struct; 18 19 int mbo_getopt(int argc, char* const *argv, const mbo_opt_struct opts[], char **optarg, int *optind, int show_err); 20 21 #endif 22 23