GNU Info

Info Node: (libc.info)Summary of Malloc

(libc.info)Summary of Malloc


Prev: Statistics of Malloc Up: Unconstrained Allocation
Enter node , (file) or (file)node

Summary of `malloc'-Related Functions
.....................................

   Here is a summary of the functions that work with `malloc':

`void *malloc (size_t SIZE)'
     Allocate a block of SIZE bytes.  Note: Basic Allocation.

`void free (void *ADDR)'
     Free a block previously allocated by `malloc'.  Note: Freeing
     after Malloc.

`void *realloc (void *ADDR, size_t SIZE)'
     Make a block previously allocated by `malloc' larger or smaller,
     possibly by copying it to a new location.  Note: Changing Block
     Size.

`void *calloc (size_t COUNT, size_t ELTSIZE)'
     Allocate a block of COUNT * ELTSIZE bytes using `malloc', and set
     its contents to zero.  Note: Allocating Cleared Space.

`void *valloc (size_t SIZE)'
     Allocate a block of SIZE bytes, starting on a page boundary.
     Note: Aligned Memory Blocks.

`void *memalign (size_t SIZE, size_t BOUNDARY)'
     Allocate a block of SIZE bytes, starting on an address that is a
     multiple of BOUNDARY.  Note: Aligned Memory Blocks.

`int mallopt (int PARAM, int VALUE)'
     Adjust a tunable parameter.  Note: Malloc Tunable Parameters.

`int mcheck (void (*ABORTFN) (void))'
     Tell `malloc' to perform occasional consistency checks on
     dynamically allocated memory, and to call ABORTFN when an
     inconsistency is found.  Note: Heap Consistency Checking.

`void *(*__malloc_hook) (size_t SIZE, const void *CALLER)'
     A pointer to a function that `malloc' uses whenever it is called.

`void *(*__realloc_hook) (void *PTR, size_t SIZE, const void *CALLER)'
     A pointer to a function that `realloc' uses whenever it is called.

`void (*__free_hook) (void *PTR, const void *CALLER)'
     A pointer to a function that `free' uses whenever it is called.

`void (*__memalign_hook) (size_t SIZE, size_t ALIGNMENT, const void *CALLER)'
     A pointer to a function that `memalign' uses whenever it is called.

`struct mallinfo mallinfo (void)'
     Return information about the current dynamic memory usage.  Note:
     Statistics of Malloc.


automatically generated by info2www version 1.2.2.9