• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 char *read_file(const char *file_name, unsigned int *file_size);
10 
11 #endif
12