Lines Matching refs:len

49 	int len;  in conv_wctomb()  local
51 len = smb_wctomb(mbs, U_FW_A); in conv_wctomb()
52 if (len != 3) { in conv_wctomb()
53 printf("Fail: conv_wctomb fwA ret=%d\n", len); in conv_wctomb()
56 mbs[len] = '\0'; in conv_wctomb()
59 hexdump((uchar_t *)mbs, len+1); in conv_wctomb()
63 len = smb_wctomb(mbs, U_POOP); in conv_wctomb()
64 if (len != 4) { in conv_wctomb()
65 printf("Fail: conv_wctomb poop ret=%d\n", len); in conv_wctomb()
68 mbs[len] = '\0'; in conv_wctomb()
71 hexdump((uchar_t *)mbs, len+1); in conv_wctomb()
76 len = smb_wctomb(mbs, 0); in conv_wctomb()
77 if (len != 1) { in conv_wctomb()
78 printf("Fail: conv_wctomb null ret=%d\n", len); in conv_wctomb()
83 hexdump((uchar_t *)mbs, len+1); in conv_wctomb()
94 int len; in conv_mbtowc() local
101 len = smb_mbtowc((void *)&wch, fwA, 4); in conv_mbtowc()
102 if (len != 3) { in conv_mbtowc()
103 printf("Fail: conv_mbtowc fwA ret=%d\n", len); in conv_mbtowc()
111 len = smb_mbtowc((void *)&wch, poop, 4); // poop emoji in conv_mbtowc()
112 if (len != 4) { in conv_mbtowc()
113 printf("Fail: conv_mbtowc poop ret=%d\n", len); in conv_mbtowc()
122 len = smb_mbtowc((void *)&wch, "", 4); in conv_mbtowc()
123 if (len != 0) { in conv_mbtowc()
124 printf("Fail: conv_mbtowc null ret=%d\n", len); in conv_mbtowc()
139 int len; in conv_wcstombs() local
141 len = smb_wcstombs(tmbs, wcsa, sizeof (tmbs)); in conv_wcstombs()
142 if (len != 5) { in conv_wcstombs()
143 printf("Fail: conv_wcstombs A ret=%d\n", len); in conv_wcstombs()
148 hexdump((uchar_t *)tmbs, len+2); in conv_wcstombs()
152 len = smb_wcstombs(tmbs, wcsp, sizeof (tmbs)); in conv_wcstombs()
153 if (len != 6) { in conv_wcstombs()
154 printf("Fail: conv_wcstombs f ret=%d\n", len); in conv_wcstombs()
159 hexdump((uchar_t *)tmbs, len+2); in conv_wcstombs()
171 int len; in conv_mbstowcs() local
173 len = smb_mbstowcs(twcs, mbsa, sizeof (twcs)); in conv_mbstowcs()
174 if (len != 3) { in conv_mbstowcs()
175 printf("Fail: conv_mbstowcs A ret=%d\n", len); in conv_mbstowcs()
178 if (memcmp(twcs, wcsa, len+2)) { in conv_mbstowcs()
180 hexdump((uchar_t *)twcs, len+2); in conv_mbstowcs()
184 len = smb_mbstowcs(twcs, mbsp, sizeof (twcs)); in conv_mbstowcs()
185 if (len != 4) { in conv_mbstowcs()
186 printf("Fail: conv_mbstowcs P ret=%d\n", len); in conv_mbstowcs()
189 if (memcmp(twcs, wcsp, len+2)) { in conv_mbstowcs()
191 hexdump((uchar_t *)twcs, len+2); in conv_mbstowcs()
209 int len; in conv_oemtombs() local
211 len = smb_oemtombs(tmbs, (uchar_t *)"foo", 4); in conv_oemtombs()
212 if (len != 3) { in conv_oemtombs()
213 printf("Fail: conv_wctomb foo ret=%d\n", len); in conv_oemtombs()
218 hexdump((uchar_t *)tmbs, len+1); in conv_oemtombs()
222 len = smb_oemtombs(tmbs, fubar_oem, 7); in conv_oemtombs()
223 if (len != 6) { in conv_oemtombs()
224 printf("Fail: conv_oemtombs fubar ret=%d\n", len); in conv_oemtombs()
229 hexdump((uchar_t *)tmbs, len+1); in conv_oemtombs()
241 int len; in conv_mbstooem() local
243 len = smb_mbstooem(oemcs, "foo", 8); in conv_mbstooem()
244 if (len != 3) { in conv_mbstooem()
245 printf("Fail: conv_mbstooem foo ret=%d\n", len); in conv_mbstooem()
248 if (memcmp(oemcs, "foo", len+1)) { in conv_mbstooem()
250 hexdump((uchar_t *)oemcs, len+1); in conv_mbstooem()
254 len = smb_mbstooem(oemcs, fubar_mbs, 8); in conv_mbstooem()
255 if (len != 5) { in conv_mbstooem()
256 printf("Fail: conv_mbstooem fubar ret=%d\n", len); in conv_mbstooem()
259 if (memcmp(oemcs, (char *)fubar_oem, len+1)) { in conv_mbstooem()
261 hexdump((uchar_t *)oemcs, len+1); in conv_mbstooem()
265 len = smb_mbstooem(oemcs, mbsp, 8); in conv_mbstooem()
266 if (len != 3) { in conv_mbstooem()
267 printf("Fail: conv_mbstooem poop ret=%d\n", len); in conv_mbstooem()
270 if (memcmp(oemcs, "P?.", len+1)) { in conv_mbstooem()
272 hexdump((uchar_t *)oemcs, len+1); in conv_mbstooem()
282 int len; in conv_sbequiv_strlen() local
284 len = (int)smb_sbequiv_strlen("a"); in conv_sbequiv_strlen()
285 if (len != 1) { in conv_sbequiv_strlen()
286 printf("Fail: conv_sbequiv_strlen (a) len=%d\n", len); in conv_sbequiv_strlen()
290 len = (int)smb_sbequiv_strlen(fubar_mbs); in conv_sbequiv_strlen()
291 if (len != strlen((char *)fubar_oem)) { in conv_sbequiv_strlen()
292 printf("Fail: conv_sbequiv_strlen (fubar) len=%d\n", len); in conv_sbequiv_strlen()
296 len = (int)smb_sbequiv_strlen(mbsp); in conv_sbequiv_strlen()
297 if (len != 3) { // "P?." in conv_sbequiv_strlen()
298 printf("Fail: conv_sbequiv_strlen (poop) len=%d\n", len); in conv_sbequiv_strlen()
308 int len; in conv_wcequiv_strlen() local
310 len = (int)smb_wcequiv_strlen("a"); in conv_wcequiv_strlen()
311 if (len != 2) { in conv_wcequiv_strlen()
312 printf("Fail: conv_wcequiv_strlen (a) len=%d\n", len); in conv_wcequiv_strlen()
316 len = (int)smb_wcequiv_strlen(fwA); in conv_wcequiv_strlen()
317 if (len != 2) { in conv_wcequiv_strlen()
318 printf("Fail: conv_wcequiv_strlen (fwA) len=%d\n", len); in conv_wcequiv_strlen()
322 len = (int)smb_wcequiv_strlen(poop); in conv_wcequiv_strlen()
323 if (len != 4) { in conv_wcequiv_strlen()
324 printf("Fail: conv_wcequiv_strlen (poop) len=%d\n", len); in conv_wcequiv_strlen()