ungetwc1 ungetwc wint_t ungetwc(wint_t wc, FILE *fp) #include #include #include #include "local.h" wint_t ungetwc(wint_t wc, FILE *fp) { struct wchar_io_data *wcio; if (wc == WEOF) return WEOF; flockfile(fp); _SET_ORIENTATION(fp, 1); /* * XXX since we have no way to transform a wchar string to * a char string in reverse order, we can't use ungetc. */ /* XXX should we flush ungetc buffer? */ wcio = WCIO_GET(fp); .. 2016. 7. 9. 이전 1 다음