Changes in uspace/lib/c/generic/io/io.c [28a5ebd:3f7fe9e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/io.c
r28a5ebd r3f7fe9e 48 48 #include <adt/list.h> 49 49 #include <wchar.h> 50 #include <uchar.h>51 50 #include "../private/io.h" 52 51 #include "../private/stdio.h" … … 750 749 } 751 750 752 wint_t fputuc(char32_t wc, FILE *stream)753 {754 char buf[STR_BOUNDS(1)];755 size_t sz = 0;756 757 if (chr_encode(wc, buf, &sz, STR_BOUNDS(1)) != EOK) {758 errno = EILSEQ;759 return WEOF;760 }761 762 size_t wr = fwrite(buf, 1, sz, stream);763 if (wr < sz)764 return WEOF;765 766 return wc;767 }768 769 751 wint_t putwchar(wchar_t wc) 770 752 { 771 753 return fputwc(wc, stdout); 772 }773 774 wint_t putuchar(char32_t wc)775 {776 return fputuc(wc, stdout);777 754 } 778 755
Note:
See TracChangeset
for help on using the changeset viewer.