Storage Allocation
Dynamic memory allocation (very important for many C programs):
malloc, calloc, free, realloc
An (incomplete) example:
#include <stdio.h>
#include <stdlib.h>
struct xx *sp;
sp = (struct xx *) malloc( 5 * sizeof(struct xx) );
if( sp == (struct xx *) NULL )
{
fprintf( stderr, “out of storage\n” );
exit( -1 );
}