utils.h (287B)
1 #ifndef UTILS_H_INCLUDED 2 #define UTILS_H_INCLUDED 3 4 #define ARRAY_SIZE(a) (sizeof(a) / sizeof *(a)) 5 6 unsigned int get_mbs_width(const char *s); 7 unsigned int get_max_mbs_width(const char *const *s, unsigned int count); 8 const char *mbs_at_width(const char *s, int *width, int dir); 9 10 #endif