summaryrefslogtreecommitdiff
path: root/src/u8c/println.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/u8c/println.c')
-rw-r--r--src/u8c/println.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/u8c/println.c b/src/u8c/println.c
index dcf592d..fbfd046 100644
--- a/src/u8c/println.c
+++ b/src/u8c/println.c
@@ -15,22 +15,23 @@
*/
# include <assert.h>
# include <stdarg.h>
+# include <stdbool.h>
# include <stdint.h>
# include <stdio.h>
# include <u8c/println.h>
# include <u8c/seterr.h>
# include <u8c/vprint.h>
-uint_least8_t u8c_println(FILE * _fp,uint_least32_t const * const _msg,...) {
+bool u8c_println(FILE * _fp,char32_t const * const _msg,...) {
assert(_fp != NULL);
va_list args;
va_start(args,_msg);
if(u8c_vprint(_fp,_msg,args)) {
- return UINT8_C(0x1);
+ return true;
}
if(fputc(0xA,stdout) == EOF) {
u8c_seterr((uint_least32_t[]){UINT32_C(0x75),UINT32_C(0x38),UINT32_C(0x63),UINT32_C(0x5F),UINT32_C(0x70),UINT32_C(0x72),UINT32_C(0x69),UINT32_C(0x6E),UINT32_C(0x74),UINT32_C(0x6C),UINT32_C(0x6E),UINT32_C(0x3A),UINT32_C(0x20),UINT32_C(0x66),UINT32_C(0x70),UINT32_C(0x75),UINT32_C(0x74),UINT32_C(0x63),UINT32_C(0x3A),UINT32_C(0x20),UINT32_C(0x55),UINT32_C(0x6E),UINT32_C(0x61),UINT32_C(0x62),UINT32_C(0x6C),UINT32_C(0x65),UINT32_C(0x20),UINT32_C(0x74),UINT32_C(0x6F),UINT32_C(0x20),UINT32_C(0x77),UINT32_C(0x72),UINT32_C(0x69),UINT32_C(0x74),UINT32_C(0x65),UINT32_C(0x20),UINT32_C(0x74),UINT32_C(0x6F),UINT32_C(0x20),UINT32_C(0x73),UINT32_C(0x74),UINT32_C(0x64),UINT32_C(0x6F),UINT32_C(0x75),UINT32_C(0x74),UINT32_C(0x2E),UINT32_C(0x0),}); /* u8c_println: fputc: Unable to write to stdout. */
- return UINT8_C(0x0);
+ return false;
}
va_end(args);
- return UINT8_C(0x0);
+ return false;
}