summaryrefslogtreecommitdiff
path: root/src/u8c/fmt.h.d/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/u8c/fmt.h.d/print.c')
-rw-r--r--src/u8c/fmt.h.d/print.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/u8c/fmt.h.d/print.c b/src/u8c/fmt.h.d/print.c
index 8785ad8..e2f4802 100644
--- a/src/u8c/fmt.h.d/print.c
+++ b/src/u8c/fmt.h.d/print.c
@@ -17,10 +17,12 @@
# include <stdbool.h>
# include <stdint.h>
# include <u8c/fmt.h>
-bool u8c_print(FILE * _fp,char32_t const * const _msg,...) {
+struct u8c_print_tuple u8c_print(FILE * restrict _fp,char32_t const * const restrict _msg,...) {
+ struct u8c_print_tuple ret;
va_list args;
va_start(args,_msg);
- uint_least8_t val = u8c_vprint(_fp,_msg,args);
+ struct u8c_vprint_tuple tuple = u8c_vprint(_fp,_msg,args);
va_end(args);
- return val;
+ ret.stat = tuple.stat;
+ return ret;
}