lib

morphux C utility library
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/lib

commit 32703720d6ae5976f972b40bec6aa970dd0da225
parent 745b5a618b1e35630e34894e5d6a67eaec2df131
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Thu,  8 Jun 2017 18:56:11 +0200

Add(Utils): Add FREE macro (free(3) and set to NULL)

Diffstat:
Minc/m_util.h | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/inc/m_util.h b/inc/m_util.h @@ -31,6 +31,8 @@ # define STR_OR_EMPTY(str) (str ? str : "") # define STR_NULL_OR_EMPTY(str) (str == NULL || (str != NULL && *str == '\0')) +# define FREE(ptr) free(ptr); ptr = NULL; + /*! * \brief Set flags for compilation output *