Originally posted by: kamper
You don't have to uppercase the JUNK on the end (at least with any compiler I've ever used).
Originally posted by: BFG10K
Typedef is only for creating aliases. This should work fine:
struct Struct_Type
{
Struct_Type ptr;
};
Originally posted by: BingBongWongFooey
Originally posted by: kamper
You don't have to uppercase the JUNK on the end (at least with any compiler I've ever used).
Case doesn't really matter on any names you define yourself.
edit: And I usually do something like:
typedef struct _junk
{
struct _junk * j;
} junk;
Originally posted by: kamper
I was just trying to say that the name at the top and the name at the bottom can be the same (can't they?) If so, what is the point of making them different?
Struct_Type is exactly what it's called: a type that is also a structure.Struct_Type there is only a struct, not a type;
Originally posted by: BFG10K
Struct_Type is exactly what it's called: a type that is also a structure.Struct_Type there is only a struct, not a type;
