Question of Ignorance

Henry Spencer henry at utzoo.UUCP
Sun May 12 10:06:36 AEST 1985


> ... I recommend using one of the two constructs
> 
>     ( longptr == (long *)32 )
> or  ( (int)longptr == 32 )
> 
> which are guaranteed to do what you want ...

Argh, WRONG!!  Turn that "(int)" into "(long)" and I might agree.  You
have no guarantees that an int is long enough to hold a pointer.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry



More information about the Comp.lang.c mailing list