Description
Gets number of rows in a matrix
Syntax
NR_ELEMENTS(a) (sizeof(a)/sizeof(a[0]))
Remarks
Useful macro to get the number of rows in a matrix to avoid hard coding it, for example:
char NAMES[][64]{ ...} names;...while (i < NR_ELEMENTS(names)){ ...