include: Add nitems() definition to sys/param.h
# define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif /* MAX */
+/* Macros for number of items.
+ * (aka. ARRAY_SIZE, ArraySize, Size of an Array)
+ */
+
+#ifndef nitems
+# define nitems(_a) (sizeof(_a) / sizeof(0[(_a)]))
+#endif /* nitems */
+
/****************************************************************************
* Public Type Definitions
****************************************************************************/
