MAXDIRS
for (dirp = dirs; optind < argc && dirp < &dirs[MAXDIRS];
} dirs[MAXDIRS+1];
static const char *dirs[MAXDIRS];
if (ndirs >= MAXDIRS)