Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!mcvax!sunic!ifi!tor!sam_hr From: sam_hr@tor.nhh.no (Heine Rasmussen) Newsgroups: comp.lang.c Subject: Re: Struct definition in MS-C Message-ID: <62@tor.nhh.no> Date: 18 Aug 89 20:10:55 GMT References:<7529@cg-atla.UUCP> Organization: NHH, Bergen, Norway Lines: 36 In article <7529@cg-atla.UUCP>, fredex@cg-atla.UUCP (Fred Smith) writes: > >[...] > I have done exactly what you want by doing the following, which is > much like examples in K&R (1st edition) page 131 and page 140: > > typedef struct node > { > ... > ... > node *next; > } NODE, *PNODE; > [...] Smith probably means typedef struct node { ... struct node *next; } NODE, *PNODE; This works fine in MSC. However, there is nothing wrong with struct node { ... struct node *next; }; (actually, K&R use several examples like this), so it surprises me that MSC will not have it. Heine