www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/12/15:16:01

From: "Cephaler" <cephaler AT hotmail DOT com>
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: <Pine DOT SUN DOT 3 DOT 91 DOT 980812165935 DOT 366C-100000 AT is>
NNTP-Posting-Host: wbg-va2-10.ix.netcom.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote in article
<Pine DOT SUN DOT 3 DOT 91 DOT 980812165935 DOT 366C-100000 AT is>...
> 
> 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)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019