Mail Archives: djgpp/1997/11/03/22:46:13
George Foot wrote:
>
> On Mon, 03 Nov 1997 03:38:06 +0000 in comp.os.msdos.djgpp John
> M. Aldrich <fighteer AT cs DOT com> 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 |
---------------------------------------------------------------------
- Raw text -