Lines Matching refs:wbuf
148 wchar_t wbuf[SIZE];
170 REQUIRE_ERRNO((ssize_t)mbstowcs(wbuf, t->data, SIZE-1), -1);
171 REQUIRE_ERRNO((ssize_t)wcstombs(buf, wbuf, SIZE-1), -1);
182 for (i = 0; wbuf[i] != 0; ++i) {
183 if (wbuf[i] == t->wchars[i] &&
184 wcwidth(wbuf[i]) == t->widths[i])
190 (void)printf(" got : 0x%04X (%d)\n", wbuf[i],
191 wcwidth(wbuf[i]));
195 if (wcswidth(wbuf, SIZE-1) != t->width) {
198 (void)printf(" got : %d\n", wcswidth(wbuf, SIZE-1));