N.B my array is of a user defined type containing multiple fields
thx
thx
#define ARRAY_LEN(a) ((sizeof (a))/(sizeof (a)[0]))
struct Thing
{
int a;
int b;
};
Thing things[5];
#define ARR_SIZE(ARR, ELEM) (sizeof( (ARR) ) / (sizeof( ( ELEM ) ) ) )
Comment