getopts
return getopts(argv[1], argv[2], optbase, &shellparam.optnext,
STATIC int getopts(char *, char *, char **, char ***, char **);
nopts = getopts(argc, argv);
nopts += getopts(argc - nopts, argv + nopts);