From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Source Code for memory functions. Date: Tue, 04 Nov 1997 06:14:14 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 30 Message-ID: <345EBD36.6358@cs.com> References: <345CA4C4 DOT 6A6F AT bergen DOT mail DOT telia DOT com> <345D471E DOT 5E90 AT cs DOT com> <63jm91$b24$2 AT news DOT ox DOT ac DOT uk> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp200.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit CC: john DOT kismul AT bergen DOT mail DOT telia DOT com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk George Foot wrote: > > On Mon, 03 Nov 1997 03:38:06 +0000 in comp.os.msdos.djgpp John > M. Aldrich wrote: > > [snip] > : int *list1, *list2; > [snip] > : for ( i = 0; i < size; i++ ) > : list1 + i = i; > : /* list1[i] = i; */ > [snip] > > I think you meant `*(list1 + i) = i;' :) Thank you, I realized that this morning, in one of those flashes of insight that occur to you when you're going through the slow process of waking up. :) What amazes me is that I wrote a medium size code example and didn't test it! A quick compile would've revealed that bug right away. Ah, well, we all get lazy from time to time... -- --------------------------------------------------------------------- | John M. Aldrich | "Autocracy is based on the assumption| | aka Fighteer I | that one man is wiser than a million | | mailto:fighteer AT cs DOT com | men. Let's play that over again, | | http://www.cs.com/fighteer | too. Who decides?" - Lazarus Long | ---------------------------------------------------------------------