shithub: scc

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