Re: Documentation cut and paste error for byte input?

Sean Charles <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
> 
> Note that the above says byte input, not byte return type.  I think it is
> the same as getc() in C.  It reads bytes but returns larger integer to
> facilitate signaling end of file.
> 
> Under these assumptions 0xFF would be 255, not -1.
> 

Yes, but in byte mode, 0xFF is a valid byte…..I still think it is a documentation problem, it’s the classic “rogue value” problem.


_______________________________________________
Users-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/users-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.