Well, at some point new probably calls malloc() but it also includes logic to activate constructors in classes.
Malloc just gives you a blob of memory to work with.
Type: Posts; User: CommonTater
Well, at some point new probably calls malloc() but it also includes logic to activate constructors in classes.
Malloc just gives you a blob of memory to work with.
You need to allocate memory for the record pointer.
ST_PERSONAL_INFO *lst_personalInfo = malloc(sizeof(ST_PERSONAL_INFO));
Don't forget to free it when you're done.