Home | History | Annotate | Download | only in locale

Lines Matching refs:btowc

96 		wc = btowc(c);
99 printf(" btowc() failed with errno=%d\n", errno);
102 printf("btowc(0x%2.2x) = 0x%x, expecting 0x%x\n",
104 ATF_REQUIRE(btowc(c) == *wcp);
130 /* btowc(EOF) -> WEOF */
131 ATF_REQUIRE_EQ(btowc(EOF), WEOF);
140 ATF_REQUIRE_EQ(btowc(*cp), WEOF);
149 ATF_REQUIRE(btowc(c) != WEOF);
153 c, btowc(c), (unsigned char)wctob(btowc(c)));
154 ATF_REQUIRE_EQ(wctob(btowc(c)), c);
158 ATF_TC(btowc);
159 ATF_TC_HEAD(btowc, tc)
161 atf_tc_set_md_var(tc, "descr", "Checks btowc(3) and wctob(3)");
163 ATF_TC_BODY(btowc, tc)
175 "Checks btowc(3) conversion to ISO10646");
192 atf_tc_set_md_var(tc, "descr", "Checks btowc(3) and wctob(3) for POSIX locale");
204 /* btowc(EOF) -> WEOF */
205 ATF_REQUIRE_EQ(btowc(EOF), WEOF);
213 ATF_REQUIRE_EQ(btowc(i), (wchar_t)(unsigned char)(i));
220 ATF_TP_ADD_TC(tp, btowc);