File: utils.h

package info (click to toggle)
alsa-utils 1.0.25-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,248 kB
  • sloc: ansic: 20,530; sh: 5,864; xml: 582; makefile: 356; sed: 16
file content (10 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#ifndef UTILS_H_INCLUDED
#define UTILS_H_INCLUDED

#define ARRAY_SIZE(a) (sizeof(a) / sizeof *(a))

unsigned int get_mbs_width(const char *s);
unsigned int get_max_mbs_width(const char *const *s, unsigned int count);
const char *mbs_at_width(const char *s, int *width, int dir);

#endif