Skip to main content

alfred westerveld's Library tagged no_tag   View Popular

Freeing after Malloc - The GNU C Library

  • There is no point in freeing blocks at the end of a program, because all
    of the program's space is given back to the system when the process
    terminates.

free [C++ Reference]

  • typedef struct data_type {
    int age;
    char name[20];
    } data;
     
    data *willy;
    willy = (data*) malloc( sizeof(*willy) );
    ...
    free( willy ); //lame joke
1 - 20 of 3646 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo