From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: Trouble with many mallocs and reallocs Date: Tue, 11 Aug 1998 17:28:19 -0300 Organization: NBTel Internet Lines: 24 Message-ID: <35D0A962.FCE5C718@unb.ca> References: <35cf519a DOT 8496651 AT news3 DOT newscene DOT com> NNTP-Posting-Host: fctnts12c27.nbnet.nb.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Bruno Barberi Gnecco wrote: > struct node { > struct node *forward, *back; > unsigned char *data; > }; > typedef struct node NODE; Why do you use a typedef to reference 'node' as 'NODE'? node a; //SAME AS NODE a; PS: You don't need to use the word 'struct' when declaring node pointers, you can just say node*. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT GeoCities DOT com Endlis AT nbnet DOT nb DOT ca