SCALE_LENGTH
#define SCALE_LENGTH (sizeof(scale) / sizeof(scale[0]))
#define SCALE_LENGTH (sizeof(units)/sizeof(units[0]))