Struct definition in MS-C

Bob Fisher nts0302 at dsacg3.UUCP
Mon Aug 21 22:08:17 AEST 1989


>From article <680010 at hpmwjaa.HP.COM>, by jeffa at 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 at daitc.arpa
US Defense Logistics Agency Systems Automation Center
DSAC-TSX, Box 1605, Columbus, OH 43216-5002



More information about the Comp.lang.c mailing list