vec_realloc()

Reallocates memory on a 16 byte alignment.

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

ptr

A pointer to an allocated block of memory.

size

The new size to allocate.

Remarks

vec_realloc() returns a pointer to the new block if it is successful and size is greater than 0. realloc() returns a null pointer if it fails or size is 0.

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