You must be logged in to do that.

Malloc

Malloc
int Malloc(int size)

Documentation

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.

Example Usage

int mypointer = Malloc(256);	// mypointer now points to a 256 byte chunk of memory.
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Doc Nav

Your docs
View All Docs

If you log in, you can edit the documentation, or create your own documents and tutorials!

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.