Search:

Type: Posts; User: CommonTater

Search: Search took 0.04 seconds.

  1. Replies
    5
    Views
    6,363

    Well, at some point new probably calls malloc()...

    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.
  2. Replies
    5
    Views
    6,363

    You need to allocate memory for the record...

    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.
Results 1 to 2 of 2