Quote:
> My compiler requires the inclusion of both malloc.h and stdlib.h for malloc
> to be in scope. I had included <malloc.h> because my compiler's help file has
> this
> statement:
> malloc
> Allocates memory blocks.
> void *malloc( size_t size );
> Routine
> malloc
> Required Header
> <stdlib.h> and <malloc.h>
The <malloc.h> is not a standard header file. Try to compile with <stdlib.h>
only. This is enough.More over, my help contains the following for malloc():
#include<stdlib.h> or #include<alloc.h>
and not and as in your one.