__qrealloc

Reallocates memory space for an object

Local Servers:nonblocking
Remote Servers:N/A
Classification:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Service:Memory Allocation

Syntax

  #include <nwmalloc.h>  
   
  void *__qrealloc  (  
     void     *old,   
     size_t    size);
  

Parameters

old
(IN) Points to a previously allocated memory block.
size
(IN) Specifies the size (in bytes) of an object.

Return Values

__qrealloc returns a pointer to the start of the reallocated memory.

Remarks

The __qrealloc function calls the __qmalloc function to enlarge a block of memory.

See Also

calloc, malloc

Example

  #include <nwmalloc.h>  
   
  char     memoryPtr;  
  char     old;  
  size_t   size;  
  memoryPtr = __qrealloc (old, size);