#include <stdlib.h> instead of the non-standard <malloc.h>.