
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>xmalloc</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
xmalloc
=======
Syntax
------
#include <stdlib.h>
void *xmalloc(size_t size);
Description
-----------
This function is just like `malloc' (malloc:.), except that if
there is no more memory, it prints an error message and exits.
Return Value
------------
A pointer to the newly allocated memory.
Example
-------
char *f = xmalloc(100);
See Also: malloc
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson