sizeof problems; negating sizes

Jerry Aguirre jerry at oliveb.UUCP
Thu May 17 04:41:01 AEST 1984


With regard to:
	- sizeof(int)

Remember that sizeof is unsigned!  Negative sizes don't make sense.
You should be able to coerce it to a long but the coercion should not
sign extend.

					    Jerry Aguirre
    {hplabs|fortune|ios|tolerant|allegra|tymix}!oliveb!jerry



More information about the Comp.lang.c mailing list