MGE General C Library - API Documentation v1.8.0
Library of general C functions.
|
Header file for memory functions. More...
Go to the source code of this file.
Functions | |
BEGIN_C_DECLS char * | mg_realloc (char *mem_ptr, const size_t mem_sz) |
Wrap realloc to include error handling. More... | |
Header file for memory functions.
All memory manipulation related information.
Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only
BEGIN_C_DECLS char * mg_realloc | ( | char * | mem_ptr, |
const size_t | mem_sz | ||
) |
Wrap realloc to include error handling.
Also used for a malloc by passing mem_ptr as NULL. On error mge_errno will be set and the old mem_ptr will be unchanged.
mem_ptr | The memory area to be re-sized. |
mem_sz | The new size required. |