Lines Matching refs:mbs

44 	char		mbs[32];  member
97 for (int i = 0; test[i].mbs[0] != 0; i++) { in test_wcsrtombs_1()
98 char mbs[32]; in test_wcsrtombs_1() local
103 (void) memset(mbs, 0, sizeof (mbs)); in test_wcsrtombs_1()
104 cnt = wcsrtombs(mbs, &wcs, sizeof (mbs), &ms); in test_wcsrtombs_1()
105 if (cnt != strlen(test[i].mbs)) { in test_wcsrtombs_1()
107 cnt, strlen(test[i].mbs)); in test_wcsrtombs_1()
109 if (strcmp(mbs, test[i].mbs) != 0) { in test_wcsrtombs_1()
111 mbs, test[i].mbs); in test_wcsrtombs_1()
114 test_debugf(t, "mbs is %s", mbs); in test_wcsrtombs_1()
143 for (int i = 0; test[i].mbs[0] != 0; i++) { in test_wcsrtombs_l()
144 char mbs[32]; in test_wcsrtombs_l() local
149 (void) memset(mbs, 0, sizeof (mbs)); in test_wcsrtombs_l()
150 cnt = wcsrtombs_l(mbs, &wcs, sizeof (mbs), &ms, loc); in test_wcsrtombs_l()
151 if (cnt != strlen(test[i].mbs)) { in test_wcsrtombs_l()
153 cnt, strlen(test[i].mbs)); in test_wcsrtombs_l()
155 if (strcmp(mbs, test[i].mbs) != 0) { in test_wcsrtombs_l()
156 test_failed(t, "wrong result: %s != %s", mbs, in test_wcsrtombs_l()
157 test[i].mbs); in test_wcsrtombs_l()
160 test_debugf(t, "mbs is %s", mbs); in test_wcsrtombs_l()
178 for (int i = 0; test[i].mbs[0] != 0; i++) { in test_wcsrtombs_thr_iter()
179 char mbs[32]; in test_wcsrtombs_thr_iter() local
184 (void) memset(mbs, 0, sizeof (mbs)); in test_wcsrtombs_thr_iter()
185 cnt = wcsrtombs_l(mbs, &wcs, sizeof (mbs), &ms, loc); in test_wcsrtombs_thr_iter()
186 if (cnt != strlen(test[i].mbs)) { in test_wcsrtombs_thr_iter()
188 cnt, strlen(test[i].mbs)); in test_wcsrtombs_thr_iter()
190 if (strcmp(mbs, test[i].mbs) != 0) { in test_wcsrtombs_thr_iter()
191 test_failed(t, "wrong result: %s != %s", mbs, in test_wcsrtombs_thr_iter()
192 test[i].mbs); in test_wcsrtombs_thr_iter()
195 test_debugf(t, "mbs is %s", mbs); in test_wcsrtombs_thr_iter()
229 char mbs[32]; in test_wcsrtombs_partial() local
243 dst = mbs; in test_wcsrtombs_partial()
261 cnt = wcsrtombs(dst, &wcs, sizeof (mbs) - strlen(mbs), &ms); in test_wcsrtombs_partial()
263 test_debugf(t, "mbs is %s", mbs); in test_wcsrtombs_partial()
265 if (strcmp(mbs, HELLO_RU_MBS) != 0) { in test_wcsrtombs_partial()
266 test_failed(t, "wrong result: %s != %s", mbs, HELLO_RU_MBS); in test_wcsrtombs_partial()
276 char mbs[32]; in test_wcsrtombs_negative() local
291 dst = mbs; in test_wcsrtombs_negative()
292 cnt = wcsrtombs(dst, &wcs, sizeof (mbs), &ms); in test_wcsrtombs_negative()
309 char mbs[32]; in test_wcsnrtombs_partial() local
323 dst = mbs; in test_wcsnrtombs_partial()
333 cnt = wcsnrtombs(dst, &wcs, 2, sizeof (mbs), &ms); in test_wcsnrtombs_partial()
339 cnt = wcsnrtombs(dst, &wcs, 32, sizeof (mbs) - strlen(mbs), &ms); in test_wcsnrtombs_partial()
341 test_debugf(t, "mbs is %s", mbs); in test_wcsnrtombs_partial()
343 if (strcmp(mbs, HELLO_RU_MBS) != 0) { in test_wcsnrtombs_partial()
344 test_failed(t, "wrong result: %s != %s", mbs, HELLO_RU_MBS); in test_wcsnrtombs_partial()