1 2 3 4 5 6 7 8 9
#include "array.h" size_t anullidx(void *a[]) { size_t i = 0; if (NULL != a) while (a[i] != NULL) i++; return i; }