[Info-vax] character set translation for language accents
Bob Koehler
koehler at eisner.nospam.encompasserve.org
Fri Apr 17 17:53:57 EDT 2009
In article <gsare3$4tb$1 at naig.caltech.edu>, glen herrmannsfeldt <gah at ugcs.caltech.edu> writes:
>
> getchar (getc) normally return EOF as -1, which will cause
> problems with the 0xFF character. If you use them for table
> lookup either and with 0xff or use unsigned char.
Which is why getchar returns an int instead of a char. As long
as your char are unsigned (int) -1 != (char) 0xff.
More information about the Info-vax
mailing list