home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / ixemul-39.47-env-bin.lha / man / cat3 / realloc.0 < prev    next >
Text File  |  1993-12-07  |  2KB  |  67 lines

  1.  
  2. REALLOC(3)                 UNIX Programmer's Manual                 REALLOC(3)
  3.  
  4. NNAAMMEE
  5.      rreeaalllloocc - reallocation of memory function
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssttddlliibb..hh>>
  9.  
  10.      _v_o_i_d _*
  11.      rreeaalllloocc(_v_o_i_d _*_p_t_r, _s_i_z_e___t _s_i_z_e)
  12.  
  13. DDEESSCCRRIIPPTTIIOONN
  14.      The rreeaalllloocc() function changes the size of the object pointed to by _p_t_r
  15.      to the size specified by _s_i_z_e. The contents of the object are unchanged
  16.      up to the lesser of the new and old sizes.  If the new size is larger,
  17.      the value of the newly allocated portion of the object is indeterminate.
  18.      If _p_t_r is a null pointer, the rreeaalllloocc() function behaves like the mal­
  19.      loc(3) function for the specified size.  Otherwise, if _p_t_r does not match
  20.      a pointer earlier returned by the calloc(3),  malloc(3),  or rreeaalllloocc()
  21.      function, or if the space has been deallocated by a call to the free or
  22.      rreeaalllloocc() function, unpredictable and usually detrimental behaviour will
  23.      occur.  If the space cannot be allocated, the object pointed to by _p_t_r is
  24.      unchanged.  If _s_i_z_e is zero and _p_t_r is not a null pointer, the object it
  25.      points to is freed.
  26.  
  27.      The rreeaalllloocc() function returns either a null pointer or a pointer to the
  28.      possibly moved allocated space.
  29.  
  30. SSEEEE AALLSSOO
  31.      alloca(3),  calloc(3),  free(3),  malloc(3),
  32.  
  33. SSTTAANNDDAARRDDSS
  34.      The rreeaalllloocc() function conforms to ANSI C3.159­1989 (``ANSI C'').
  35.  
  36. BSD Experimental                  May 2, 1991                                1
  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.  
  65.  
  66.  
  67.