Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: "Antony Arciuolo" Newsgroups: scee.yaroze.programming.2d_graphics Subject: Re: A simple Queue Date: Sun, 4 Oct 1998 15:13:04 -0400 Organization: SCEA News Server Lines: 30 Message-ID: <6v8gis$5i41@scea> References: <6ubp2u$1mg5@scea> <36097D57.5804EB27@shell.jps.net> NNTP-Posting-Host: aarciuol.pc.trincoll.edu X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 if you do QUEUE *q, you have to assign the val to *q[i] or the compiler complains, but execution screws up. If I do it the way you suggested, everything works fine! Thank you very much! :) - Tony Elliott Lee wrote in message <36097D57.5804EB27@shell.jps.net>... >Are you sure that your QUEUE_Init is dereferencing its pointer >properly? Seems to me that: > > void QUEUE_Init(QUEUE *q) > >is the same as > > void QUEUE_Init(QUEUE q[]) > >which means that > > *q[i] = QUEUE_NULL; > >is wrong because "q" is already a pointer and that you should be >writing: > > q[i] = QUEUE_NULL; >