Lines Matching refs:cnt
100 size_t cnt;
104 cnt = wcsrtombs(mbs, &wcs, sizeof (mbs), &ms);
105 if (cnt != strlen(test[i].mbs)) {
107 cnt, strlen(test[i].mbs));
146 size_t cnt;
150 cnt = wcsrtombs_l(mbs, &wcs, sizeof (mbs), &ms, loc);
151 if (cnt != strlen(test[i].mbs)) {
153 cnt, strlen(test[i].mbs));
181 size_t cnt;
185 cnt = wcsrtombs_l(mbs, &wcs, sizeof (mbs), &ms, loc);
186 if (cnt != strlen(test[i].mbs)) {
188 cnt, strlen(test[i].mbs));
232 size_t cnt;
244 cnt = wcsrtombs(dst, &wcs, 1, &ms);
245 if (cnt != 0) {
246 test_failed(t, "gave back a conversion cnt %d != 0", cnt);
252 cnt = wcsrtombs(dst, &wcs, 2, &ms);
253 if (cnt != 2) {
254 test_failed(t, "gave back a conversion cnt %d != 2", cnt);
256 dst += cnt;
258 cnt = wcsrtombs(dst, &wcs, 4, &ms);
259 dst += cnt;
261 cnt = wcsrtombs(dst, &wcs, sizeof (mbs) - strlen(mbs), &ms);
281 int cnt;
292 cnt = wcsrtombs(dst, &wcs, sizeof (mbs), &ms);
293 if (cnt != -1) {
294 test_failed(t, "bogus success (%d)", cnt);
312 size_t cnt;
324 cnt = wcsnrtombs(dst, &wcs, 1, 1, &ms);
325 if (cnt != 0) {
326 test_failed(t, "gave back a conversion cnt %d != 0", cnt);
333 cnt = wcsnrtombs(dst, &wcs, 2, sizeof (mbs), &ms);
334 if (cnt != 4) {
335 test_failed(t, "gave back a conversion cnt %d != 4", cnt);
337 dst += cnt;
339 cnt = wcsnrtombs(dst, &wcs, 32, sizeof (mbs) - strlen(mbs), &ms);