MAXCMDS
static const char *knowncmds[MAXCMDS] = {
if (ncmds >= MAXCMDS) {
printf("Only %d known commands allowed\n", MAXCMDS);