#ifndef COMET_FORMAT_H #define COMET_FORMAT_H #include #include typedef struct { char **parts; uint8_t *marks; size_t length; } format_t; typedef struct { const char *key; uint8_t mark; bool prefix; bool postfix; } format_pair_t; bool format_init(format_t *format, const char *string, char delim); int format_remark(format_t *format, const char *label, const format_pair_t *pairs); void format_free(format_t *format); #endif