Question of Ignorance

Henry Spencer henry at utzoo.UUCP
Fri May 17 02:33:44 AEST 1985

> >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.
> I'm not sure what ANSI C says about pointers fitting into longs, but I
> don't think there is any guarantee there either.  If there IS such a
> guarantee, It doesn't seem like a good idea, since I know of 
> machines upon which pointers don't even fit in longs.  Of course, 
> pointers would have a better *chance* of fitting into a long :-).

Please notice that I said "*might* agree".  :-)
				Henry Spencer @ U of Toronto Zoology

More information about the Comp.lang.c mailing list