diff options
Diffstat (limited to 'src/u8c/fmt.h.d/fmt.c')
-rw-r--r-- | src/u8c/fmt.h.d/fmt.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/u8c/fmt.h.d/fmt.c b/src/u8c/fmt.h.d/fmt.c index 43f1ea4..59feb74 100644 --- a/src/u8c/fmt.h.d/fmt.c +++ b/src/u8c/fmt.h.d/fmt.c @@ -18,11 +18,15 @@ # include <stddef.h> # include <stdint.h> # include <u8c/fmt.h> -# include <u8c/u32.h> -bool u8c_fmt(size_t * const _outsz,char32_t const * * const _out,char32_t const * const _in,...) { +# include <u8c/str.h> +struct u8c_fmt_tuple u8c_fmt(char32_t const * const restrict _in,...) { + struct u8c_fmt_tuple ret; va_list args; va_start(args,_in); - uint_least8_t val = u8c_vfmt(_outsz,_out,_in,args); + struct u8c_vfmt_tuple tuple = u8c_vfmt(_in,args); va_end(args); - return val; + ret.stat = tuple.stat; + ret.str = tuple.str; + ret.strsz = tuple.strsz; + return ret; } |