🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #336

Re: C query.

#336
From: M.J. Williams
Date: Thu, 15 Oct 1992 14:55
21 lines
1400 bytes
In article <1992Oct15.144310.3530@infodev.cam.ac.uk> I wrote:
>This defines an anonymous structure, and assigns it to the typedef filenode.
>You want something like:
>
>typedef struct filenode {
>   char *name;
>   char *comment;
>   struct filenode *next;
>   struct filenode *prev;
>   struct filenode *parent;
>   struct filenode *sublist;
>   [...]
>} filenode;

Oh, and use (filenode *) instead of (struct filenode *) for tidier programming.
Or, of course, leave out the typedef all together...
--
_______________________________________________________________________________
 \   ^   / Michael Williams                     Part II Computer Science Tripos
  |\/|\/\  MJW19@phx.cam.ac.uk                          University of Cambridge
  |  |(__) Cymdeithas Genedlaethol Traddodiad Troi Teigrod Mwythus Ben I Waered
Technical Details
Message-ID: <1992Oct15.145506.3820@infodev.cam.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!pavo.csi.cam.ac.uk!mjw19
References: <2qdtw7j025n@khantazi.welly.gen.nz> <1992Oct15.144310.3530@infodev.cam.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!unipalm!uknet!pavo.csi.cam.ac.uk!mjw19
From: mjw19@cl.cam.ac.uk (M.J. Williams)
Newsgroups: comp.sys.acorn.tech
Subject: Re: C query.
Message-ID: <1992Oct15.145506.3820@infodev.cam.ac.uk>
Date: 15 Oct 92 14:55:06 GMT
References: <2qdtw7j025n@khantazi.welly.gen.nz> <1992Oct15.144310.3530@infodev.cam.ac.uk>
Sender: news@infodev.cam.ac.uk (USENET news)
Reply-To: mjw19@cl.cam.ac.uk (M.J. Williams)
Organization: The National Society for the Inversion of Cudddly Tigers
Lines: 21
Nntp-Posting-Host: turves.cl.cam.ac.uk