14 Jul
2014
14 Jul
'14
12:07 p.m.
On 11 July 2014 20:44, Andrei Slăvoiu <andrei.slavoiu(a)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.