Portability vs. Endianness

Henry Spencer henry at zoo.toronto.edu
Thu Mar 14 02:48:40 AEST 1991


In article <3005 at inews.intel.com> bhoughto at hopi.intel.com (Blair P. Houghton) writes:
>#if (((sizeof long)%(sizeof char)) == 0)	/* even-numbered modulus */

Bleep.  Error.  At least, it won't do what you think.  "sizeof" is not an
operator in #if; it is just another unknown identifier.

Incidentally, that expression is guaranteed to be true anyway, because
sizeof char ==== 1.  ("====" is the "emphatically equal to" operator. :-))
-- 
"But this *is* the simplified version   | Henry Spencer @ U of Toronto Zoology
for the general public."     -S. Harris |  henry at zoo.toronto.edu  utzoo!henry



More information about the Comp.lang.c mailing list