| |
| | malloc - Man Pages at IceWalkers.com |
 | | MALLOC(3) Linux Programmer's Manual MALLOC(3) NAME calloc, malloc, free, realloc - Allocate and free dynamic memory SYNOPSIS #include void*calloc(size_t nmemb,size_t size); void*malloc(size_t size); voidfree(void *ptr); void*realloc(void *ptr,size_t size); DESCRIPTION calloc() allocates memory for an array of nmemb elements of size bytes each and returns a pointer to the allocated memory. |
 | | RETURNVALUE 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. |
 | | Crashes in malloc(), free() or realloc() are almost always related to heap corruption, such as overflowing an allo cated chunk or freeing the same pointer twice. |
| www.icewalkers.com /Linux/ManPages/malloc-3.html (547 words) |
|