vec_calloc()

Clears and allocates memory on a 16 byte alignment.

  #include <stdlib.h>
  
  void *vec_calloc(size_t nmemb, size_t size);    
Parameter

nmemb

number of elements to allocate

elemsize

size of an element

Remarks

The vec_calloc() function allocates contiguous space for nmemb elements of size. The space is initialized with zeroes.

vec_calloc() returns a pointer to the first byte of the memory area allocated. vec_calloc() returns a null pointer ( NULL) if no space could be allocated.

This function is not specified in the ISO/IEC standards. It is an extension of the standard library.