Assigning address to array from heap
- by Schaltfehler
I want to save the state of my structs as a binary file and load them again.
My structs look like this:
typedef struct
{
uint8_t pointerLength;
uint8_t *pointer;
uint8_t NumBla;
uinT16 Bla[MAX_NUM_Bla];
...
}
BAR_STRUCT, *BAR;
typedef struct
{
int numBar;
BAR bars[MAX_NUM_BAR];
}
FOO_STRUCT, *FOO;
Saving is no problem, but…