From: "Cephaler" Newsgroups: comp.os.msdos.djgpp Subject: Re: pointers and errors make cephaler go crazy Date: 12 Aug 1998 19:04:56 GMT Organization: ICGNetcom Lines: 27 Message-ID: <01bdc624$058eaa40$4ac3b8cd@scully> References: NNTP-Posting-Host: wbg-va2-10.ix.netcom.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Eli Zaretskii wrote in article ... > > Since your message didn't reveal your data structures, I could only guess > what might be wrong, and it is up to you to check which of the guesses > are right. I could've sworn I put the typedef in there... Well, it was: typedef struct { unsigned char tile;unsigned char tag /*bitmask*/} > In contrast, an address of a variable is usually a large number (put > simplistically, it is the number of the byte where that variable is > stored), and could be anything. In particular, it can be much more than > N-1, which is the largest allowed index into an array. > So... If I read you correctly, there is absolutely no use for integers as pointers, except to pass an address? How do you retrieve the value of that int?! - Cephaler - ...coffee has worn away, getting restless, excuse me if I sound rude, some other thing is pissing me off (collision checking! aahhh)