delorie.com/archives/browse.cgi | search |
From: | Endlisnis <s257m AT unb DOT ca> |
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: | <Pine DOT SUN DOT 3 DOT 91 DOT 980810093926 DOT 1429A-100000 AT is> <35cf519a DOT 8496651 AT news3 DOT newscene DOT com> |
NNTP-Posting-Host: | fctnts12c27.nbnet.nb.ca |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |