| __ARRAYCOUNT(3) | Library Functions Manual | __ARRAYCOUNT(3) |
__arraycount —
#include <sys/cdefs.h>
size_t
__arraycount(x);
__arraycount() macro returns the number of elements
in a statically allocated buffer.
__arraycount():
uint8_t buf[BUFSIZE]; size_t i; ... for (i = 0; i < __arraycount(buf); i++) ...
__arraycount() macro first appeared in
NetBSD 4.0.
| December 16, 2010 | NetBSD 10.1 |