0xFF != '\xFF' ?

Blair P. Houghton bhoughto at bishop.intel.com
Fri Apr 19 14:38:08 AEST 1991


In article <wolfram.671964442 at cip-s02> wolfram at cip-s02.informatik.rwth-aachen.de (Wolfram Roesler) writes:
>Sepp at ppcger.ppc.sub.org (Josef Wolf) writes:
>>You even don't know about the number of bits of a char (or is it defined?)
>>So you can get into trouble with this.
>
>A char is defined to contain a single character, so this is usually 8 bits.

Look in <limits.h> (or grep through your compiler's include-files)
for `CHAR_BIT'.  This is the definition of the number of bits
in a `char'.

				--Blair
				  "Give me egrep and a place to
				   stand and I will move the earth."



More information about the Comp.lang.c mailing list