Lines Matching refs:dstbuf
52 char dstbuf[128];
61 memset(dstbuf, 0xcc, sizeof(dstbuf));
64 ATF_REQUIRE(wcsrtombs(dstbuf, (const wchar_t **)&src, sizeof(dstbuf),
66 ATF_REQUIRE(strcmp(dstbuf, "hello") == 0);
67 ATF_REQUIRE((unsigned char)dstbuf[6] == 0xcc);
73 memset(dstbuf, 0xcc, sizeof(dstbuf));
76 ATF_REQUIRE(wcsrtombs(dstbuf, (const wchar_t **)&src, 4,
78 ATF_REQUIRE(memcmp(dstbuf, "hell", 4) == 0);
79 ATF_REQUIRE((unsigned char)dstbuf[5] == 0xcc);
87 ATF_REQUIRE(wcsrtombs(NULL, (const wchar_t **)&src, sizeof(dstbuf),
93 memset(dstbuf, 0xcc, sizeof(dstbuf));
95 ATF_REQUIRE(wcsrtombs(dstbuf, (const wchar_t **)&src, sizeof(dstbuf),
97 ATF_REQUIRE(strcmp(dstbuf, "hello") == 0);
98 ATF_REQUIRE((unsigned char)dstbuf[6] == 0xcc);
110 memset(dstbuf, 0xcc, sizeof(dstbuf));
113 ATF_REQUIRE(wcsrtombs(dstbuf, (const wchar_t **)&src, sizeof(dstbuf),
115 ATF_REQUIRE(dstbuf[0] == L'\0');
120 memset(dstbuf, 0xcc, sizeof(dstbuf));
123 ATF_REQUIRE(wcsrtombs(dstbuf, (const wchar_t **)&src, 0, &s) == 0);
124 ATF_REQUIRE((unsigned char)dstbuf[0] == 0xcc);
140 memset(dstbuf, 0xcc, sizeof(dstbuf));
143 ATF_REQUIRE(wcsrtombs(dstbuf, (const wchar_t **)&src, sizeof(dstbuf),
145 ATF_REQUIRE(strcmp(dstbuf, "\xA3\xC1 B \xA3\xC3") == 0);
146 ATF_REQUIRE((unsigned char)dstbuf[8] == 0xcc);