wcswidth
int wcswidth(const wchar_t *, size_t);
if (wcswidth(wbuf, SIZE-1) != t->width) {
(void)printf(" got : %d\n", wcswidth(wbuf, SIZE-1));