Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.micro.68k,net.lang.c Subject: Re: Question of Ignorance Message-ID: <5599@utzoo.UUCP> Date: Thu, 16-May-85 12:33:44 EDT Article-I.D.: utzoo.5599 Posted: Thu May 16 12:33:44 1985 Date-Received: Thu, 16-May-85 12:33:44 EDT References: <198@unccvax.UUCP> <1427@bbncca.ARPA> <5590@utzoo.UUCP>, <36@rtp47.UUCP> Organization: U of Toronto Zoology Lines: 13 > >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 {allegra,ihnp4,linus,decvax}!utzoo!henry