File:  [MW Coherent from dump] / coherent / a / usr / man / ALL / free
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



free()                   General Function                  free()




Return dynamic memory to free memory pool

vvooiidd ffrreeee(_p_t_r) cchhaarr *_p_t_r;

free helps  you manage the arena.  It returns  to the free memory
pool memory that had previously been allocated by malloc, calloc,
or realloc.  free marks the  block indicated by _p_t_r as unused, so
the malloc  search can coalesce  it with contiguous  free blocks.
ptr must have been obtained from malloc, calloc, or realloc.

***** Example *****

For an  example of  how to  use this routine,  see the  entry for
malloc.

***** See Also *****

arena, calloc(), general functions, malloc(), realloc(), setbuf()

***** Diagnostics *****

free prints  a message and  calls aabboorrtt if it  discovers that the
arena has been corrupted.  This most often occurs by storing data
beyond the bounds of an allocated block.
































COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.