__qmalloc

Allocates memory 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 *__qmalloc  ( 
     size_t   size);
  

Parameters

size
(IN) Specifies the size (in bytes) of the object.

Return Values

_qmalloc returns a pointer to the start of the newly allocated memory.

Remarks

The cache buffer size can be viewed or changed with the SET console command. The default cache buffer size is 4,096 bytes.

See Also

__qcalloc, realloc

Example

  #include <nwmalloc.h>  
   
  int      memoryPtr;  
  size-t   size;  
  memoryPtr = __qmalloc (size);