May 2003
Intermediate to advanced
808 pages
32h 24m
English
malloc function — Allocates memory
void* malloc(size_t size)The malloc function
allocates size bytes of memory.
It returns a pointer to the start of the newly allocated memory or a
null pointer if there is insufficient memory to fulfill the request.
The pointer is suitably aligned for any type.
C++ programs should use the new operator instead of calling malloc.
calloc function, free function, realloc function, new keyword
Read now
Unlock full access