Added cmc_flags_to_str
This commit is contained in:
1 parent
277139656e
commit
831037df42
1 file changed
+9
@@ -90,4 +90,13 @@ static struct
|
||||
int ERROR; // Generic error, usually caused by algorithm error
|
||||
} cmc_flags = { 0, 1, 2, 3, 4, 5, 6, 7 };
|
||||
|
||||
/**
|
||||
* cmc_flags_to_str
|
||||
*
|
||||
* Maps the error codes to their character representation.
|
||||
*/
|
||||
const char *cmc_flags_to_str[8] = { "OK", "ALLOC", "EMPTY",
|
||||
"NOT_FOUND", "INVALID", "RANGE",
|
||||
"DUPLICATE", "ERROR" };
|
||||
|
||||
#endif /* CMC_CORE_H */
|
||||
Reference in new issue
Block a user