This is an old revision of this page, as edited by PokestarFan (discuss | contribs) at 13:54, 28 May 2017. It may differ significantly from the current revision. |
Syntax |
#include <cstdlib>
void *malloc( size_t s );
|
The function malloc() allocates a block of memory of size s. The memory remains uninitialized.
If the operation fails, malloc() returns NULL.