optind = 1, /* index into parent argv vector */
optopt, /* character checked for validity */
optreset; /* reset getopt */
-char *optarg; /* argument associated with option */
+const char *optarg; /* argument associated with option */
#define BADCH (int)'?'
#define BADARG (int)':'
*/
int getopt(int nargc, char *const *nargv, const char *ostr) {
# define __progname nargv[0]
- static char *place = EMSG; /* option letter processing */
+ static const char *place = EMSG; /* option letter processing */
char *oli; /* option letter list index */
if (optreset || !*place) { /* update scanning pointer */