2 * TEST SUITE FOR MB/WC FUNCTIONS IN C LIBRARY
6 * WCSNCPY: wchar_t *wcsncpy (wchar_t *ws1, const wchar_t *ws2,
13 * An initial value of ws1 in the test program is defined as:
15 * #define WCSNUM_NCPY 7
16 * wchar_t ws1 [WCSSIZE] = { 0x9999, 0x9999, 0x9999, 0x9999,
17 * 0x9999, 0x9999, 0x0000 };
21 TST_WCSNCPY tst_wcsncpy_loc
[] = {
23 {Twcsncpy
, TST_LOC_de
},
26 {{ { 0x00D1,0x00D2,0x00D3,0x0000 }, 6 },
27 { 0,0,0, { 0x00D1,0x00D2,0x00D3,0x0000,0x0000,0x0000,0x0000 } },
30 {{ { 0x00D1,0x00D2,0x00D3,0x0000 }, 5 },
31 { 0,0,0, { 0x00D1,0x00D2,0x00D3,0x0000,0x0000,0x9999,0x0000 } },
34 {{ { 0x00D1,0x00D2,0x00D3,0x0000 }, 3 },
35 { 0,0,0, { 0x00D1,0x00D2,0x00D3,0x9999,0x9999,0x9999,0x0000 } },
38 {{ { 0x00D1,0x00D2,0x00D3,0x0000 }, 2 },
39 { 0,0,0, { 0x00D1,0x00D2,0x9999,0x9999,0x9999,0x9999,0x0000 } },
42 {{ { 0x00D1,0x00D2,0x00D3,0x0000 }, 0 },
43 { 0,0,0, { 0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x0000 } },
46 {{ { 0x0000,0x00D2,0x00D3,0x0000 }, 3 },
47 { 0,0,0, { 0x0000,0x0000,0x0000,0x9999,0x9999,0x9999,0x0000 } },
53 {Twcsncpy
, TST_LOC_enUS
},
56 {{ { 0x0041,0x0042,0x0043,0x0000 }, 6 },
57 { 0,0,0, { 0x0041,0x0042,0x0043,0x0000,0x0000,0x0000,0x0000 } },
60 {{ { 0x0041,0x0042,0x0043,0x0000 }, 5 },
61 { 0,0,0, { 0x0041,0x0042,0x0043,0x0000,0x0000,0x9999,0x0000 } },
64 {{ { 0x0041,0x0042,0x0043,0x0000 }, 3 },
65 { 0,0,0, { 0x0041,0x0042,0x0043,0x9999,0x9999,0x9999,0x0000 } },
68 {{ { 0x0041,0x0042,0x0043,0x0000 }, 2 },
69 { 0,0,0, { 0x0041,0x0042,0x9999,0x9999,0x9999,0x9999,0x0000 } },
72 {{ { 0x0041,0x0042,0x0043,0x0000 }, 0 },
73 { 0,0,0, { 0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x0000 } },
76 {{ { 0x0000,0x0042,0x0043,0x0000 }, 3 },
77 { 0,0,0, { 0x0000,0x0000,0x0000,0x9999,0x9999,0x9999,0x0000 } },
83 {Twcsncpy
, TST_LOC_eucJP
},
86 {{ { 0x3041,0x3042,0x3043,0x0000 }, 6 },
87 { 0,0,0, { 0x3041,0x3042,0x3043,0x0000,0x0000,0x0000,0x0000 } },
90 {{ { 0x3041,0x3042,0x3043,0x0000 }, 5 },
91 { 0,0,0, { 0x3041,0x3042,0x3043,0x0000,0x0000,0x9999,0x0000 } },
94 {{ { 0x3041,0x3042,0x3043,0x0000 }, 3 },
95 { 0,0,0, { 0x3041,0x3042,0x3043,0x9999,0x9999,0x9999,0x0000 } },
98 {{ { 0x3041,0x3042,0x3043,0x0000 }, 2 },
99 { 0,0,0, { 0x3041,0x3042,0x9999,0x9999,0x9999,0x9999,0x0000 } },
102 {{ { 0x3041,0x3042,0x3043,0x0000 }, 0 },
103 { 0,0,0, { 0x9999,0x9999,0x9999,0x9999,0x9999,0x9999,0x0000 } },
106 {{ { 0x0000,0x3042,0x3043,0x0000 }, 3 },
107 { 0,0,0, { 0x0000,0x0000,0x0000,0x9999,0x9999,0x9999,0x0000 } },
113 {Twcsncpy
, TST_LOC_end
}