Date: Thu, 12 Mar 1998 19:35:22 -0800 (PST) Message-Id: <199803130335.TAA08666@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: langtons AT manawatu DOT gen DOT nz (Michael Langton), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Definition of struct for dynamic linked list. Precedence: bulk At 09:53 3/12/1998 GMT, Michael Langton wrote: >Hello, >I'm getting practice with C (I've done all this before in pascal) and >DJGPP by making some ADT units, and I've come across the following >problem: In this code, (for linked lists, stacks, etc.) > >typedef int stype; >struct nodeS { > stype data; > nodeS *next; >} Try: struct nodeS { stype data; struct nodeS *next; }; Nate Eldredge eldredge AT ap DOT net