shithub: scc

ref: 560a156341e5bb352194a85c3258406a079697b7
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;
}