Lines Matching refs:cnt

100 		size_t cnt;  in test_wcsrtombs_1()  local
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()
146 size_t cnt; in test_wcsrtombs_l() local
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()
181 size_t cnt; in test_wcsrtombs_thr_iter() local
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()
232 size_t cnt; in test_wcsrtombs_partial() local
244 cnt = wcsrtombs(dst, &wcs, 1, &ms); in test_wcsrtombs_partial()
245 if (cnt != 0) { in test_wcsrtombs_partial()
246 test_failed(t, "gave back a conversion cnt %d != 0", cnt); in test_wcsrtombs_partial()
252 cnt = wcsrtombs(dst, &wcs, 2, &ms); in test_wcsrtombs_partial()
253 if (cnt != 2) { in test_wcsrtombs_partial()
254 test_failed(t, "gave back a conversion cnt %d != 2", cnt); in test_wcsrtombs_partial()
256 dst += cnt; in test_wcsrtombs_partial()
258 cnt = wcsrtombs(dst, &wcs, 4, &ms); in test_wcsrtombs_partial()
259 dst += cnt; in test_wcsrtombs_partial()
261 cnt = wcsrtombs(dst, &wcs, sizeof (mbs) - strlen(mbs), &ms); in test_wcsrtombs_partial()
281 int cnt; in test_wcsrtombs_negative() local
292 cnt = wcsrtombs(dst, &wcs, sizeof (mbs), &ms); in test_wcsrtombs_negative()
293 if (cnt != -1) { in test_wcsrtombs_negative()
294 test_failed(t, "bogus success (%d)", cnt); in test_wcsrtombs_negative()
312 size_t cnt; in test_wcsnrtombs_partial() local
324 cnt = wcsnrtombs(dst, &wcs, 1, 1, &ms); in test_wcsnrtombs_partial()
325 if (cnt != 0) { in test_wcsnrtombs_partial()
326 test_failed(t, "gave back a conversion cnt %d != 0", cnt); in test_wcsnrtombs_partial()
333 cnt = wcsnrtombs(dst, &wcs, 2, sizeof (mbs), &ms); in test_wcsnrtombs_partial()
334 if (cnt != 4) { in test_wcsnrtombs_partial()
335 test_failed(t, "gave back a conversion cnt %d != 4", cnt); in test_wcsnrtombs_partial()
337 dst += cnt; in test_wcsnrtombs_partial()
339 cnt = wcsnrtombs(dst, &wcs, 32, sizeof (mbs) - strlen(mbs), &ms); in test_wcsnrtombs_partial()