itercmd
const void *itercmd(const void *, struct cmdentry *);
for (const void *a = NULL; (a = itercmd(a, &e)) != NULL;) {