MGE General C Library - API Documentation v1.6.7
Library of general C functions.
Loading...
Searching...
No Matches
mgememory.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 * *
29 ************************************************************************
30 */
31
32#ifndef MGEMEMORY_H
33#define MGEMEMORY_H
34
35#include <portability.h>
36#include <sys/types.h>
37
39
40char *mg_realloc(char *mem_ptr, const size_t mem_sz);
41
43
44#endif /* ndef MGEMEMORY_H */
45
BEGIN_C_DECLS char * mg_realloc(char *mem_ptr, const size_t mem_sz)
Wrap realloc to include error handling.
Definition: memory.c:53
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: portability.h:47
#define END_C_DECLS
Use END_C_DECLS at the end of C declarations.
Definition: portability.h:51