typedef struct node * pnode;

David J. Camp david at wubios.wustl.edu
Sat Sep 16 10:58:36 AEST 1989


Please reply directly to me.

I have this statement in a Microsoft C 5.1 program:

    typedef struct node * pnode;

Then I use it later like this:

     pnode a,b;

Well a becomes defined correctly, but is seems that b is getting the
type (node) instead of (node *).  Is this the way it is supposed to
work, or is it a bug?
-David-
-- 
Bitnet:   david at wubios.wustl                ^      Mr. David J. Camp
Internet: david%wubios at wucs1.wustl.edu    < * >    Box 8067, Biostatistics
uucp:     uunet!wucs1!wubios!david          v      660 South Euclid
Washington University (314) 36-23635               Saint Louis, MO 63110



More information about the Comp.lang.c mailing list