3 ms·
#define ARRAY_SIZE(x) ((sizeof x) / sizeof *(x)) But ideally there would be a builtin to do this, since this gives nonsense results if you pass a pointer inste
by 7786655 6y ago
#define ARRAY_SIZE(x) ((sizeof x) / sizeof *(x))
But ideally there would be a builtin to do this, since this gives nonsense results if you pass a pointer instead of an array.