Mail Archives: djgpp-workers/1997/12/18/02:56:57
molnarl AT cdata DOT tvnet DOT hu wrote:
>
> On Wed, 17 Dec 1997, Vik Heyndrickx wrote:
>
> > int a ='\x84';
> > int b;
>
> What's wrong with "int a=0x84;" ? :-)
In DOS codepage 850, 0x84 is an e-character with an accent on it, but
since I do not now how that shows on your mail reader, I prefer to write
to write '\x84'. But this was not the issue.
> > Since getc is only supposed to be used for text files, I think we should
> > change it to return chars in the range [-128..127], so that comparisons
> > work.
>
> I think this is a bad idea, because most programs assume that EOF is -1.
I meant 'return ints in the range [-128..127] or -1'. Do I always have
to be *this* exact? I think it was obvious what I meant to say.
Kind regards.
--
\ Vik /-_-_-_-_-_-_/
\___/ Heyndrickx /
\ /-_-_-_-_-_-_/
- Raw text -