|
|
1.1 ! root 1: ! 2: ! 3: realloc() General Function realloc() ! 4: ! 5: ! 6: ! 7: ! 8: Reallocate dynamic memory ! 9: ! 10: cchhaarr *rreeaalllloocc(_p_t_r, _s_i_z_e) cchhaarr *_p_t_r; uunnssiiggnneedd _s_i_z_e; ! 11: ! 12: realloc helps you manage a program's arena. It returns a block ! 13: of _s_i_z_e bytes that holds the contents of the old block, up to the ! 14: smaller of the old and new sizes. realloc tries to return the ! 15: same block, truncated or extended; if _s_i_z_e is smaller than the ! 16: size of the old block, rreeaalllloocc will return the same _p_t_r. ! 17: ! 18: ***** Example ***** ! 19: ! 20: For an example of this function, see the entry for ccaalllloocc. ! 21: ! 22: ***** See Also ***** ! 23: ! 24: arena, calloc(), free(), general functions, malloc(), memok(), ! 25: setbuf() ! 26: ! 27: ***** Diagnostics ***** ! 28: ! 29: rreeaalllloocc returns NULL if insufficient memory is available. It ! 30: prints a message and calls aabboorrtt if it discovers that the arena ! 31: has been corrupted, which most often occurs by storing past the ! 32: bounds of an allocated block. rreeaalllloocc will behave unpredictably ! 33: if handed an incorrect _p_t_r. ! 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.