|
MGE General C Library - API Documentation v1.9.0
Library of general C functions.
|
Memory functions. More...
#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <syslog.h>#include <libmgec/mge-errno.h>#include <libmgec/mge-memory.h>
Functions | |
| char * | mg_realloc (char *mem_ptr, const size_t mem_sz) |
| Wrap realloc to include error handling. | |
Memory functions.
All memory related support functions.
Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only
| 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. |