6 * array_size - routine for safely deriving the size of a visible array.
8 * This provides a simple ARRAY_SIZE() macro, which (given a good compiler)
9 * will also break compile if you try to use it on a pointer.
11 * This can ensure your code is robust to changes, without needing a gratuitous
15 * #include <ccan/array_size/array_size.h>
18 * // We currently use 32 random values.
19 * static unsigned int vals[32];
21 * void init_values(void)
24 * for (i = 0; i < ARRAY_SIZE(vals); i++)
28 * Licence: LGPL (2 or any later version)
30 int main(int argc, char *argv[])
35 if (strcmp(argv[1], "depends") == 0) {
36 printf("ccan/build_assert\n");