Lines Matching refs:dstbuf

51 	char dstbuf[128];
60 memset(dstbuf, 0xcc, sizeof(dstbuf));
63 ATF_REQUIRE(wcsnrtombs(dstbuf, (const wchar_t **)&src, 6, sizeof(dstbuf),
65 ATF_REQUIRE(strcmp(dstbuf, "hello") == 0);
66 ATF_REQUIRE((unsigned char)dstbuf[6] == 0xcc);
72 memset(dstbuf, 0xcc, sizeof(dstbuf));
75 ATF_REQUIRE(wcsnrtombs(dstbuf, (const wchar_t **)&src, 4, sizeof(dstbuf),
77 ATF_REQUIRE(memcmp(dstbuf, "hell", 4) == 0);
78 ATF_REQUIRE((unsigned char)dstbuf[5] == 0xcc);
84 memset(dstbuf, 0xcc, sizeof(dstbuf));
87 ATF_REQUIRE(wcsnrtombs(dstbuf, (const wchar_t **)&src, 6, 4,
89 ATF_REQUIRE(memcmp(dstbuf, "hell", 4) == 0);
90 ATF_REQUIRE((unsigned char)dstbuf[5] == 0xcc);
98 ATF_REQUIRE(wcsnrtombs(NULL, (const wchar_t **)&src, 6, sizeof(dstbuf),
106 ATF_REQUIRE(wcsnrtombs(NULL, (const wchar_t **)&src, 4, sizeof(dstbuf),
112 memset(dstbuf, 0xcc, sizeof(dstbuf));
114 ATF_REQUIRE(wcsnrtombs(dstbuf, (const wchar_t **)&src, 6, sizeof(dstbuf),
116 ATF_REQUIRE(strcmp(dstbuf, "hello") == 0);
117 ATF_REQUIRE((unsigned char)dstbuf[6] == 0xcc);
129 memset(dstbuf, 0xcc, sizeof(dstbuf));
132 ATF_REQUIRE(wcsnrtombs(dstbuf, (const wchar_t **)&src, 1, sizeof(dstbuf),
134 ATF_REQUIRE(dstbuf[0] == L'\0');
139 memset(dstbuf, 0xcc, sizeof(dstbuf));
142 ATF_REQUIRE(wcsnrtombs(dstbuf, (const wchar_t **)&src, 6, 0, &s) == 0);
143 ATF_REQUIRE((unsigned char)dstbuf[0] == 0xcc);
147 memset(dstbuf, 0xcc, sizeof(dstbuf));
150 ATF_REQUIRE(wcsnrtombs(dstbuf, (const wchar_t **)&src, 0, sizeof(dstbuf),
152 ATF_REQUIRE((unsigned char)dstbuf[0] == 0xcc);
169 memset(dstbuf, 0xcc, sizeof(dstbuf));
172 ATF_REQUIRE(wcsnrtombs(dstbuf, (const wchar_t **)&src, 6, sizeof(dstbuf),
174 ATF_REQUIRE(strcmp(dstbuf, "\xA3\xC1 B \xA3\xC3") == 0);
175 ATF_REQUIRE((unsigned char)dstbuf[8] == 0xcc);
179 memset(dstbuf, 0xcc, sizeof(dstbuf));
182 ATF_REQUIRE(wcsnrtombs(dstbuf, (const wchar_t **)&src, 6, 6,
184 ATF_REQUIRE(memcmp(dstbuf, "\xA3\xC1 B ", 5) == 0);
185 ATF_REQUIRE((unsigned char)dstbuf[5] == 0xcc);