shithub: scc

ref: 95552e35a889ea98c511ffc72ebc62d9fd48121a
dir: /src/libc/wchar/wcwidth.c/

View raw version
#include <wchar.h>
#undef wcwidth

/* incomplete, needs a real implementation */
int
wcwidth(wchar_t wc)
{
	if (!wc)
		return 0;
	else if (wc < 32 || wc >= 127)
		return -1;
	return 1;
}