int
read_switch (const char *prompt, const struct swit *ansp)
{
- register int i;
- register char *cp;
- register const struct swit *ap;
+ int i;
+ char *cp;
+ const struct swit *ap;
char ansbuf[BUFSIZ];
for (;;) {
if (i == EOF)
return 0;
if (cp < &ansbuf[sizeof ansbuf - 1]) {
- i = (isalpha(i) && isupper(i)) ? tolower(i) : i;
+ i = tolower(i);
*cp++ = i;
}
}