|
|
#include <stdlib.h> // You must include this header file
// to obtain the function declaration for malloc( ) and free( )
struct List *p;
p = malloc( sizeof( struct List ) ); // Allocate (= reserve) memroy for List object
free( p ); // De-allocate (= unreserve) the memory used
|
I will use free( ) in an example soon