|
From: | Eli Zaretskii |
Subject: | EARRAYSIZE |
Date: | Thu, 03 Apr 2014 22:30:50 +0300 |
+/* Find number of elements in array */ +#define EARRAYSIZE(arr) (sizeof (arr) / sizeof ((arr)[0])) I find the name of this macro to be unfortunate: what it returns is not "size" in the accepted meaning of that word. How about ALEN, or ARRAYELTS instead?
[Prev in Thread] | Current Thread | [Next in Thread] |