I have a structure in a C program defined:
struct {
char *Name;
char *Mod_Image;
char *ICA_Image;
int IsActive;
int ICAControl_ID;
int Panel_Handle;
int Panel_IsOpen;
ViReal64 Size;
} Module[100];
Instead of statically allocating an array of 100 of these structures like I have done, I want to dynamically allocate the array at run-time. I've done dynamic allocation of char arrays and int arrays, but never an array of structures containing chars and ints. Can someone give me some hints? Thanks in advance!
struct {
char *Name;
char *Mod_Image;
char *ICA_Image;
int IsActive;
int ICAControl_ID;
int Panel_Handle;
int Panel_IsOpen;
ViReal64 Size;
} Module[100];
Instead of statically allocating an array of 100 of these structures like I have done, I want to dynamically allocate the array at run-time. I've done dynamic allocation of char arrays and int arrays, but never an array of structures containing chars and ints. Can someone give me some hints? Thanks in advance!