shithub: scc

ref: 46b51055e0657109fb95d93022d2e1614290311e
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;
}