diff options
Diffstat (limited to 'src/u8c/u16.h.d/u16free.c')
-rw-r--r-- | src/u8c/u16.h.d/u16free.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/u8c/u16.h.d/u16free.c b/src/u8c/u16.h.d/u16free.c index d447562..43e7503 100644 --- a/src/u8c/u16.h.d/u16free.c +++ b/src/u8c/u16.h.d/u16free.c @@ -17,8 +17,10 @@ # include <stdint.h> # include <stdlib.h> # include <u8c/u16.h> -bool u8c_u16free(char16_t const * * const _u16) { - free((char16_t *)*_u16); - *_u16 = NULL; - return false; +struct u8c_u16free_tuple u8c_u16free(char16_t const * const restrict _u16) { + struct u8c_u16free_tuple ret = { + .stat = false, + }; + free((char16_t *)_u16); + return ret; } |