Struct definition in MS-C
Heine Rasmussen
sam_hr at tor.nhh.no
Sat Aug 19 06:10:55 AEST 1989
In article <7529 at cg-atla.UUCP>, fredex at 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
More information about the Comp.lang.c
mailing list