carg-parse/carg-parse.h

27 lines
441 B
C
Raw Normal View History

2023-05-11 19:56:37 +00:00
// c argument parser - Rose (github.com/AUnicornWithNoLife)
2023-10-03 10:48:28 +00:00
#ifndef LIB_CARG_PARSE
#define LIB_CARG_PARSE
2023-05-11 13:44:54 +00:00
#include <stdint.h>
typedef struct
{
char* exec_name;
uint32_t values_len;
char** values;
uint32_t lv_len;
char** lv_labels;
char** lv_values;
2023-07-29 12:23:01 +00:00
uint32_t flags_len;
char** flags;
2023-05-11 13:44:54 +00:00
} carg_parse_data;
carg_parse_data* carg_parse(int argc, char** argv);
void carg_parse_free(carg_parse_data* data);
2023-07-29 12:23:01 +00:00
#endif