long long vs long

dahms@ifk20.mach.uni-karlsruhe.de dahms@ifk20.mach.uni-karlsruhe.de
Wed Jul 29 16:23:00 GMT 1998


Hi raf, you wrote:

: >With sizeof(char) = sizeof(int) = 1 and looking at K&R II pg. 16,
: >you'd got a problem with getchar() and EOF, if someone invents a
: >32bit charset and assumes to be able to use them all *and* EOF.
: >AFAIK the biggest charsets currently are 16bit (e.g. Unicode),
: >so at the moment you're safe with a 32bit char!
: 
: no, ISO has a 4-byte charset. it's like unicode but
: with separate copies of asian ideographs, one each for
: japanese, korean and chinese.
: 
: if using this charset, EOF would have to be ((long long)-1) :)

Hopefully ISO reserved the char at ((unsigned int)-1) exactly for EOF.


Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list