Hi,
I have the following 2 structs:
Then I do:Code:typedef struct _date { int day; int month; int year; }DATE; typedef struct _worker{ int id; char name[100]; DATE * birthdate; }WORKER;
Will this save the worker info and the birthdate?Code:if(fwrite(n->data, sizeof(WORKER), 1, fp) != 1){ printf("<Error: writting to file.>\n"); }
Regards.