1b3e94a20d
From release 0.1.0 pre-patched archive. This includes all Red Bear modifications previously maintained as patches in local/patches/relibc/.
9 lines
208 B
C
9 lines
208 B
C
#include <wchar.h>
|
|
#include <assert.h>
|
|
|
|
int main() {
|
|
// size is 17
|
|
wchar_t* str1 = L"こんにちは世界Привет мир";
|
|
assert(wcsnlen(str1, 10) == 10);
|
|
assert(wcsnlen(str1, 100) == 17);
|
|
} |