summaryrefslogtreecommitdiff
path: root/src/u8c/u8.h.d/u8free.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/u8c/u8.h.d/u8free.c')
-rw-r--r--src/u8c/u8.h.d/u8free.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/u8c/u8.h.d/u8free.c b/src/u8c/u8.h.d/u8free.c
index af5a6bd..a0b61a8 100644
--- a/src/u8c/u8.h.d/u8free.c
+++ b/src/u8c/u8.h.d/u8free.c
@@ -17,8 +17,10 @@
# include <stdint.h>
# include <stdlib.h>
# include <u8c/u8.h>
-bool u8c_u8free(unsigned char const * * const _u8) {
- free((unsigned char *)*_u8);
- *_u8 = NULL;
- return false;
+struct u8c_u8free_tuple u8c_u8free(unsigned char const * const restrict _u8) {
+ struct u8c_u8free_tuple ret = {
+ .stat = false,
+ };
+ free((unsigned char *)_u8);
+ return ret;
}