MGE General C Library - API Documentation v1.8.0
Library of general C functions.
mge-memory.h
Go to the documentation of this file.
1
16/* **********************************************************************
17 * *
18 * Changelog *
19 * *
20 * Date Author Version Description *
21 * *
22 * 24/10/2017 MG 1.0.1 This ChangeLog introduced. *
23 * 04/11/2017 MG 1.0.2 Add Doxygen comments. *
24 * 09/11/2017 MG 1.0.3 Add SPDX license tag. *
25 * 02/01/2018 MG 1.0.4 Move to new source directory structure. *
26 * 08/06/2019 MG 1.0.5 clang-format coding style changes. *
27 * 03/12/2021 MG 1.0.6 Tighten SPDX tag. *
28 * 16/09/2022 MG 1.0.7 Rename of portability.h *
29 * Rename to standard format mge-memory.h *
30 * *
31 ************************************************************************
32 */
33
34#ifndef MGE_MEMORY_H
35#define MGE_MEMORY_H
36
38
39#include <sys/types.h>
40
42
43char *mg_realloc(char *mem_ptr, const size_t mem_sz);
44
46
47#endif /* ndef MGE_MEMORY_H */
BEGIN_C_DECLS char * mg_realloc(char *mem_ptr, const size_t mem_sz)
Wrap realloc to include error handling.
Definition: memory.c:54
Header file to ease portability.
#define BEGIN_C_DECLS
BEGIN_C_DECLS should be used at the beginning of declarations so that C++ compilers don't mangle thei...
Definition: mge-portability.h:48
#define END_C_DECLS
Use END_C_DECLS at the end of C declarations.
Definition: mge-portability.h:52