Searched refs:dstbuf (Results 1 - 7 of 7) sorted by relevance

/barrelfish-master/lib/libc/tests/locale/
H A Dmbstowcs_test.c52 wchar_t dstbuf[128]; local
59 wmemset(dstbuf, 0xcccc, sizeof(dstbuf) / sizeof(*dstbuf));
60 ATF_REQUIRE(mbstowcs(dstbuf, srcbuf, sizeof(dstbuf) / sizeof(*dstbuf)) == 5);
61 ATF_REQUIRE(wcscmp(dstbuf, L"hello") == 0);
62 ATF_REQUIRE(dstbuf[6] == 0xcccc);
67 wmemset(dstbuf,
[all...]
H A Dwcstombs_test.c52 char dstbuf[128]; local
59 memset(dstbuf, 0xcc, sizeof(dstbuf));
60 ATF_REQUIRE(wcstombs(dstbuf, srcbuf, sizeof(dstbuf)) == 5);
61 ATF_REQUIRE(strcmp(dstbuf, "hello") == 0);
62 ATF_REQUIRE((unsigned char)dstbuf[6] == 0xcc);
67 memset(dstbuf, 0xcc, sizeof(dstbuf));
68 ATF_REQUIRE(wcstombs(dstbuf, srcbu
[all...]
H A Dmbsrtowcs_test.c52 wchar_t dstbuf[128]; local
63 wmemset(dstbuf, 0xcccc, sizeof(dstbuf) / sizeof(*dstbuf));
66 ATF_REQUIRE(mbsrtowcs(dstbuf, (const char **)&src, sizeof(dstbuf) /
67 sizeof(*dstbuf), &s) == 5);
68 ATF_REQUIRE(wcscmp(dstbuf, L"hello") == 0);
69 ATF_REQUIRE(dstbuf[6] == 0xcccc);
75 wmemset(dstbuf,
[all...]
H A Dmbsnrtowcs_test.c51 wchar_t dstbuf[128]; local
60 wmemset(dstbuf, 0xcccc, sizeof(dstbuf) / sizeof(*dstbuf));
63 ATF_REQUIRE(mbsnrtowcs(dstbuf, (const char **)&src, 6, sizeof(dstbuf) /
64 sizeof(*dstbuf), &s) == 5);
65 ATF_REQUIRE(wcscmp(dstbuf, L"hello") == 0);
66 ATF_REQUIRE(dstbuf[6] == 0xcccc);
72 wmemset(dstbuf,
[all...]
H A Dwcsrtombs_test.c52 char dstbuf[128]; local
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, (cons
[all...]
H A Dwcsnrtombs_test.c51 char dstbuf[128]; local
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, (cons
[all...]
/barrelfish-master/lib/libc/locale/
H A DmbrtocXX_iconv.h52 } dstbuf; member in struct:__anon1006
108 dst = cs->dstbuf.bytes;
111 dstleft <= sizeof(cs->dstbuf.bytes));
114 cs->dstbuf_len = (dst - cs->dstbuf.bytes) / sizeof(charXX_t);
142 retchar = cs->dstbuf.widechar[0];
143 memmove(&cs->dstbuf.widechar[0], &cs->dstbuf.widechar[1],

Completed in 71 milliseconds