Lines Matching refs:mbrtowc
28 * Test program for mbrtowc(), as specified by IEEE Std. 1003.1-2001 and
64 ATF_REQUIRE(mbrtowc(&wc, buf, 1, NULL) == 0);
69 ATF_REQUIRE(mbrtowc(&wc, buf, 1, &s) == 0);
73 ATF_REQUIRE(mbrtowc(NULL, 0, 0, NULL) == 0);
75 ATF_REQUIRE(mbrtowc(&wc, buf, 1, NULL) == 1);
80 ATF_REQUIRE(mbrtowc(&wc, buf, 1, &s) == 1);
86 ATF_REQUIRE(mbrtowc(&wc, buf, 0, &s) == (size_t)-2);
89 /* Check that mbrtowc() doesn't access the buffer when n == 0. */
93 ATF_REQUIRE(mbrtowc(&wc, buf, 0, &s) == (size_t)-2);
104 ATF_REQUIRE(mbrtowc(NULL, 0, 0, NULL) == 0);
107 ATF_REQUIRE(mbrtowc(&wc, buf, 1, NULL) == 0);
112 ATF_REQUIRE(mbrtowc(&wc, buf, 1, &s) == 0);
116 ATF_REQUIRE(mbrtowc(NULL, 0, 0, NULL) == 0);
118 ATF_REQUIRE(mbrtowc(&wc, buf, 1, NULL) == 1);
123 ATF_REQUIRE(mbrtowc(&wc, buf, 1, &s) == 1);
129 ATF_REQUIRE(mbrtowc(&wc, buf, 0, &s) == (size_t)-2);
138 ATF_REQUIRE(mbrtowc(&wc, buf, 1, &s) == (size_t)-2);
144 ATF_REQUIRE(mbrtowc(&wc, buf, 2, &s) == 2);
152 ATF_REQUIRE(mbrtowc(&wc, buf, 1, &s) == (size_t)-2);
155 ATF_REQUIRE(mbrtowc(&wc, buf, 1, &s) == 1);