Lines Matching defs:wbuf
163 wchar_t wbuf[SIZE];
178 REQUIRE_ERRNO((ssize_t)mbstowcs(wbuf, t->data, SIZE-1), -1);
179 REQUIRE_ERRNO((ssize_t)wcstombs(buf, wbuf, SIZE-1), -1);
190 for (i = 0; wbuf[i] != 0; ++i) {
191 if (wbuf[i] == t->wchars[i] &&
192 wcwidth(wbuf[i]) == t->widths[i])
198 (void)printf(" got : 0x%04X (%d)\n", wbuf[i],
199 wcwidth(wbuf[i]));
203 if (wcswidth(wbuf, SIZE-1) != t->width) {
206 (void)printf(" got : %d\n", wcswidth(wbuf, SIZE-1));