// get length of array #define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0]))