
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>_exmgrab() allocate memory</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
_exmgrab() Allocate memory
Syntax Usage: #include "extend.h"
unsigned char *_exmgrab(bytes)
unsigned int bytes; Requested amount of memory
Description: _exmgrab() allocates an amount of memory in bytes. If
successful, it returns a char pointer to the allocated
space in memory; otherwise, it returns NULL. To free
this memory, use _exmback().
----------------------------------- Example --------------------------------
size = 512;
buff = _exmgrab(size); /* allocate memory */
if (buff) /* if successful (!null) */
check = TRUE;
See Also: _exmback()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson