T
Trance
I would like to set up a structure that looks like
struct newStruct{
char radius;
char *coreShifts;
}
then have several such structures and access them using pointers. Now,
how can I perform the memory allocation when the number of values in
coreShifts is changing from structure at position 1 vs structure at
position 2, because each structure will occupy different amounts of
memory depending on the number of elements in coreShifts.
Any help or pointing to reading resources would be greatly
appreciated.
Thank you.
struct newStruct{
char radius;
char *coreShifts;
}
then have several such structures and access them using pointers. Now,
how can I perform the memory allocation when the number of values in
coreShifts is changing from structure at position 1 vs structure at
position 2, because each structure will occupy different amounts of
memory depending on the number of elements in coreShifts.
Any help or pointing to reading resources would be greatly
appreciated.
Thank you.