you can do this also.. w
typedef struct _one First;
typedef struct _two Second;
struct _one{
int i,j;
Second s2;
};
struct _two{
int i,j;
First f1;
};
with this method u can typedef the structures in the header file ..and then in each .c file that includes the header file .. it can have its "personalized" definition of the structure.
Main Topics
Browse All Topics





by: peterdownesPosted on 2002-12-15 at 15:49:00ID: 7586356
struct First
{
char* s1;
char* s2;
struct Second* data;
};
struct Second
{
char* s1;
char* s2;
int i1;
First* data;
};