![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
mallocby malloc (Pilgrim) |
on May 17, 2001 at 18:23 UTC ( [id://81246]=user: print w/replies, xml ) | Need Help?? |
envision the white lotus
MALLOC(3) Linux Programmer's Manual MALLOC(3) NAME calloc, malloc, free, realloc - Allocate and free dynamic memory SYNOPSIS #include <stdlib.h> void *malloc(size_t size); DESCRIPTION malloc() allocates size bytes and returns a pointer to the allocated memory. The memory is not cleared. RETURN VALUE For calloc() and malloc(), the value returned is a pointer to the allocated memory, which is suitably aligned for any kind of variable, or NULL if the request fails. CONFORMING TO ANSI-C SEE ALSO brk(2) NOTES Crashes in malloc(), free() or realloc() are almost always related to heap corruption, such as overflowing an allocated chunk or freeing the same pointer twice. GNU April 4, 1993 1 |
|