File:  [MW Coherent from dump] / coherent / a / usr / man / ALL / realloc
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



realloc()                General Function               realloc()




Reallocate dynamic memory

cchhaarr *rreeaalllloocc(_p_t_r, _s_i_z_e) cchhaarr *_p_t_r; uunnssiiggnneedd _s_i_z_e;

realloc helps  you manage a program's arena.   It returns a block
of _s_i_z_e bytes that holds the contents of the old block, up to the
smaller of  the old and  new sizes.  realloc tries  to return the
same block,  truncated or extended;  if _s_i_z_e is  smaller than the
size of the old block, rreeaalllloocc will return the same _p_t_r.

***** Example *****

For an example of this function, see the entry for ccaalllloocc.

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

arena,  calloc(), free(),  general functions,  malloc(), memok(),
setbuf()

***** Diagnostics *****

rreeaalllloocc  returns NULL  if insufficient  memory is  available.  It
prints a  message and calls aabboorrtt if it  discovers that the arena
has been  corrupted, which most often occurs  by storing past the
bounds of an  allocated block.  rreeaalllloocc will behave unpredictably
if handed an incorrect _p_t_r.






























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.