[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
malloc

Allocate a block of heap memory.
Compatibility:
This function is compatible with the following targets:
Prototype:
#include <stdlib.h>
void *malloc(size_t size);
Parameters:
Parameters for this facility are:
Remarks:
The malloc() function allocates a block of contiguous heap memory size bytes large.
Return:
malloc() returns a pointer to the first byte of the allocated block if it is successful and return a null pointer if it fails.
See Also:
"vec_malloc"
"calloc"
"free"
"realloc"
For example of malloc() usage:
Refer to "Example of calloc() usage.".
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000