getch() and getche() in MSC 4.0

Karl Heuer karl at haddock.ima.isc.com
Fri Oct 28 06:42:51 AEST 1988


In article <1737 at cbnews.ATT.COM> lvc at cbnews.ATT.COM (Lawrence V. Cipriani) writes:
>[Poking _ctype[] to make '_' appear alphabetic is] a bad idea since 1) the
>"array" has a different name on different systems, eg. BSD vs. AT&T, and 2)
>the #define symbols for character class definition, eg. _U vs. _UPPER (in
>uSoft) vary as well.

Also because (3) _ctype[] may not be writable, (4) other library routines may
be depending on isalpha('_') being false, (5) Even if _ctype[] exists,
isalpha() might not use it.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list