struct prototype?

Posted By: metal

struct prototype? - 03/21/10 18:24

hi,
i want to have two structs, each with a pointer to the other struct. is this possible with lite-c?
is there something like a struct prototype?

adding "struct Planet;" as in c++ doesn´t work frown
Code:
typedef struct Starsystem{
Planet* planet1;
} Starsystem;


typedef struct Planet{
Starsystem* System;
}Planet


Posted By: Saturnus

Re: struct prototype? - 03/21/10 18:35

No, struct prototypes are not supported by lite-C.

You have to use void pointers here.
© 2024 lite-C Forums