🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: C query.

#334
From: M.J. Williams
Date: Thu, 15 Oct 1992 14:43
36 lines
1571 bytes
In article <2qdtw7j025n@khantazi.welly.gen.nz> banks_p@kosmos.wcc.govt.nz writes:
>The problems is thus I have defined a structure like so :-
>
>typedef struct {
>   char *name;
>   char *comment;
>   struct filenode *next;
>   struct filenode *prev;
>   struct filenode *parent;
>   struct filenode *sublist;
>   int load;
>   int exec;
>   int length;
>   char flag;
>} filenode;

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;

Hope this helps,
Mike
--
_______________________________________________________________________________
 \   ^   / 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.144310.3530@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>

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.144310.3530@infodev.cam.ac.uk>
Date: 15 Oct 92 14:43:10 GMT
References: <2qdtw7j025n@khantazi.welly.gen.nz>
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: 36
Nntp-Posting-Host: turves.cl.cam.ac.uk