1 2 3 4 5 6 7 8 9 10
#ifndef UTILS_H #define UTILS_H struct value_string { unsigned int value; const char *str; }; const char *get_value_string(const struct value_string *vs, uint32_t val); #endif