Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/io.c

    r28a5ebd r3f7fe9e  
    4848#include <adt/list.h>
    4949#include <wchar.h>
    50 #include <uchar.h>
    5150#include "../private/io.h"
    5251#include "../private/stdio.h"
     
    750749}
    751750
    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 
    769751wint_t putwchar(wchar_t wc)
    770752{
    771753        return fputwc(wc, stdout);
    772 }
    773 
    774 wint_t putuchar(char32_t wc)
    775 {
    776         return fputuc(wc, stdout);
    777754}
    778755
Note: See TracChangeset for help on using the changeset viewer.