0060-wcsxfrm.c - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
0060-wcsxfrm.c (300B)
---
1 #include <assert.h>
2 #include <stdio.h>
3 #include <wchar.h>
4
5 /*
6 output:
7 testing
8 done
9 end:
10 */
11
12 int
13 main()
14 {
15 wchar_t buf[40];
16 size_t n;
17
18 puts("testing");
19
20 assert(wcsxfrm(buf, L"test", 40) == 4);
21 assert(wcsxfrm(buf, L"", 0) == 0);
22 assert(wcsxfrm(NULL, L"abc", 0) > 0);
23
24 puts("done");
25
26 return 0;
27 }