/src/tests/lib/libc/locale/ |
t_wcstod.c | 75 const wchar_t *wcs; member in struct:test 403 for (t = &tests[0]; t->wcs != NULL; ++t) { 404 printf("wcslen(\"%S\") = %zu\n", t->wcs, wcslen(t->wcs)); 405 n = wcstombs(NULL, t->wcs, 0); 406 printf("wcstombs(NULL, \"%S\", 0) = %d\n", t->wcs, (int)n); 408 (void)wcstombs(buf, t->wcs, n + 1); 409 printf("wcstombs(buf, \"%S\", %d) = \"%s\"\n", t->wcs, 411 ATF_REQUIRE_EQ(strlen(buf), wcslen(t->wcs)); 431 for (t = &tests[0]; t->wcs != NULL; ++t) [all...] |
t_wctomb.c | 105 wchar_t wcs[16 + 2]; local in function:h_wctomb 133 wcs[t->wclen] = L'X'; /* poison */ 135 sz = mbsrtowcs(wcs, &pcs, t->wclen + 2, NULL); 138 ATF_REQUIRE_EQ(wcs[t->wclen], 0); 142 ret = wctomb(cs, wcs[i]); 144 ret = wcrtomb(cs, wcs[i], stp);
|