| www.delorie.com/gnu/docs/glibc/libc_36.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
malloc-Related Functions
Here is a summary of the functions that work with malloc:
void *malloc (size_t size)
void free (void *addr)
malloc. See section 3.2.2.3 Freeing Memory Allocated with malloc.
void *realloc (void *addr, size_t size)
malloc larger or smaller,
possibly by copying it to a new location. See section 3.2.2.4 Changing the Size of a Block.
void *calloc (size_t count, size_t eltsize)
malloc, and set its contents to zero. See section 3.2.2.5 Allocating Cleared Space.
void *valloc (size_t size)
void *memalign (size_t size, size_t boundary)
int mallopt (int param, int value)
int mcheck (void (*abortfn) (void))
malloc to perform occasional consistency checks on
dynamically allocated memory, and to call abortfn when an
inconsistency is found. See section 3.2.2.9 Heap Consistency Checking.
void *(*__malloc_hook) (size_t size, const void *caller)
malloc uses whenever it is called.
void *(*__realloc_hook) (void *ptr, size_t size, const void *caller)
realloc uses whenever it is called.
void (*__free_hook) (void *ptr, const void *caller)
free uses whenever it is called.
void (*__memalign_hook) (size_t size, size_t alignment, const void *caller)
memalign uses whenever it is called.
struct mallinfo mallinfo (void)
malloc.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |