K
Keith Thompson
CBFalconer said:Chris Torek wrote: [...]Others have pointed out several earlier problems. Another one
occurs here: you pass the integer constant 1 to allocation_memory(),
and then test for the character-constant '1', which is probably 49
or 241 (depending on whether your machine uses ASCII or EBCDIC), but
in any case is definitely not 1.
I think it is on MIX
I think you're right -- but '1' cannot equal 1 on any conforming C
implementation. (The digits are contiguous, and '\0' is reserved.)
Which means that a conforming C implementation for MIX can't use the
MIX-native character encoding.