Struct definition in MS-C

Shuang Chen shuang at caip.rutgers.edu
Thu Aug 17 04:48:39 AEST 1989



I am trying to use struct to implement a linked list with Microsoft C.
The problem I had was that I could not define a node structure with a
pointer to point to another node of the same type.  The program was

typedef struct {

	...
	...
	node *next;
	} node;


Actually I tried to use

struct node {
	
	...
	...
	struct node *next;
	};
as it is with standard C, but this doesn't work with MS-C.
	
Does any one have such experience ?  I appriciate any help since I
have to implement this on a IBM PC/AT with Microsoft C.

Thanks...	

			
				Shuang



More information about the Comp.lang.c mailing list