Пример #1
0
int
main()
{
    unsigned l;
    WCHAR *res;
    unsigned char buf[4096];
    unsigned size;

    size = read(0, buf, sizeof(buf));
    buf[size] = 0;
    res = utf8_to_utf16(buf);
    l = wchar_strlen(res);
    fwrite(res, l, sizeof(WCHAR), stdout);
    return 0;
}
Пример #2
0
	VALKNUT_FORCE_INLINE size_t char_strlen( const wchar* p ){
		return wchar_strlen(p);
	}