#ifndef UCI_COMMAND_H #define UCI_COMMAND_H #define MAX_TOKEN_SIZE 32 typedef struct { char root[MAX_TOKEN_SIZE]; int args_count; int args_capacity; char* args; bool empty; } uci_cmd_t; uci_cmd_t uci_cmd_init(); void uci_cmd_add(uci_cmd_t *cmd, const char *token); void uci_cmd_set_root(uci_cmd_t *cmd, const char *token); void uci_cmd_append_arg(uci_cmd_t *cmd, const char *token); char *uci_cmd_get_arg(uci_cmd_t cmd, int i); void uci_cmd_deinit(uci_cmd_t cmd); #endif // UCI_COMMAND_H