shithub: scc

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