|
|
1.1 ! root 1: ! 2: ! 3: free() General Function free() ! 4: ! 5: ! 6: ! 7: ! 8: Return dynamic memory to free memory pool ! 9: ! 10: vvooiidd ffrreeee(_p_t_r) cchhaarr *_p_t_r; ! 11: ! 12: free helps you manage the arena. It returns to the free memory ! 13: pool memory that had previously been allocated by malloc, calloc, ! 14: or realloc. free marks the block indicated by _p_t_r as unused, so ! 15: the malloc search can coalesce it with contiguous free blocks. ! 16: ptr must have been obtained from malloc, calloc, or realloc. ! 17: ! 18: ***** Example ***** ! 19: ! 20: For an example of how to use this routine, see the entry for ! 21: malloc. ! 22: ! 23: ***** See Also ***** ! 24: ! 25: arena, calloc(), general functions, malloc(), realloc(), setbuf() ! 26: ! 27: ***** Diagnostics ***** ! 28: ! 29: free prints a message and calls aabboorrtt if it discovers that the ! 30: arena has been corrupted. This most often occurs by storing data ! 31: beyond the bounds of an allocated block. ! 32: ! 33: ! 34: ! 35: ! 36: ! 37: ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.