This repository has been archived on 2024-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
probotic/include/free.h

23 lines
721 B
C
Raw Normal View History

2023-08-04 11:13:47 -04:00
#ifndef FREE_H_
#define FREE(obj) \
do \
{ \
free(obj); \
(obj) = NULL; \
} while (0)
#define FULL_FREE(obj) \
do \
{ \
if ((obj)) \
{ \
memset((obj), '\0', strlen((obj))); \
FREE((obj)); \
} \
} while (0)
#define FREE_H_
#endif