__qcalloc

Allocates memory space for an array of objects

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 *__qcalloc  (  
     size_t   n,   
     size_t   el_size);
  

Parameters

n
(IN) Specifies the number of objects.
el_size
(IN) Specifies the size (in bytes) of the object.

Return Values

_qcalloc returns a pointer to the start of the allocated memory.

Remarks

The __qcalloc function initializes all the memory to binary zeroes. The _qcalloc function calls the malloc function.

See Also

malloc, realloc

Example

  #include <nwmalloc.h>  
   
  int      memoryPtr;  
  size_t   n;  
  size_t   el_size;  
  memoryPtr = __qcalloc (n, el_size);