On 11 July 2014 20:44, Andrei Slăvoiu andrei.slavoiu@gmail.com wrote:
+#ifndef NUMELMS +#define NUMELMS(array) (sizeof(array)/sizeof((array)[0])) +#endif
If you really want this kind of thing it would be called ARRAY_SIZE, but I'd prefer just writing it out.