Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!dsacg1!dsacg3!nts0302 From: nts0302@dsacg3.UUCP (Bob Fisher) Newsgroups: comp.lang.c Subject: Re: Struct definition in MS-C Message-ID: <1575@dsacg3.UUCP> Date: 21 Aug 89 12:08:17 GMT References: <680010@hpmwjaa.HP.COM> Organization: Defense Logistics Agency Systems Automation Center, Columbus Lines: 27 From article <680010@hpmwjaa.HP.COM>, by jeffa@hpmwtd.HP.COM (Jeff Aguilera): #> struct node { ## ## ... ## ... ## struct node *next; ## }; ## as it is with standard C, but this doesn't work with MS-C. # # Are you SURE that doesn't work? MS-C handles my linked lists # perfectly. I doubt it. struct node cannot include itself in its own definition. Try swapping the last two lines like this. struct node { ... ... }; struct node *next; -- Bob Fisher (osu-cis!dsacg1!bfisher) 614-238-9071 (Autovon 850-9071) From the Internet: bfisher%dsacg1.uucp@daitc.arpa US Defense Logistics Agency Systems Automation Center DSAC-TSX, Box 1605, Columbus, OH 43216-5002