Lines Matching defs:wc
89 * The reasons why we don't use putwchar(wc) here are:
90 * - If wc == L'\0', we need to restore the initial shift state, but
96 printwc(wchar_t wc, mbstate_t *pst)
101 size = wcrtomb(buf, wc, pst);
104 if (wc == L'\0') {
111 return wc == L'\0' ? 0 : wcwidth(wc);
131 wchar_t wc;
145 rv = mbrtowc(&wc, src, span, &src_state);
146 if (rv == 0) { /* assert(wc == L'\0'); */
148 n += printwc(wc, &stdout_state);
163 n += printwc(iswprint(wc) ? wc : L'?', &stdout_state);