void *sds_realloc (void *memloc, size_t bytes);
Change the size of a memory allocation.
This function changes the size of memory that has been previously allocated. The contents of the memory region are preserved if the size is increased; some contents may be lost when the memory size is decreased.
The argument memloc is a pointer to the memory region.
The bytes argument is the new size of the memory allocation.
This function returns a pointer to the memory region. If the function fails, it returns null.
Tell me about...
Programming Overview of SDS (Solutions Development System)