int Malloc(int size)
Returns a pointer to a newly allocated memory space of the specified size.
Note: This function is not intended for general use. It is only for advanced users. There is rarely a need to use it. Memory blocks allocated with Malloc should be freed with MemFree, which is not interchangeable with FreeImage, FreeSound, FreeFont, or anything else.
int mypointer = Malloc(256); // mypointer now points to a 256 byte chunk of memory.
There are no talkbacks on this documentation page yet. Post the first?
Doc Nav |
Your docs |