1 #ifndef OSMOCORE_UTIL_H
2 #define OSMOCORE_UTIL_H
4 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
13 const char *get_value_string(const struct value_string *vs, uint32_t val);
14 int get_string_value(const struct value_string *vs, const char *str);
16 char bcd2char(uint8_t bcd);
17 /* only works for numbers in ascci */
18 uint8_t char2bcd(char c);