Lines Matching defs:buf
50 char buf[MB_LEN_MAX + 1];
65 memset(buf, 0, sizeof(buf));
66 assert(mbtowc(&wc, buf, 1) == 0);
70 buf[0] = 'A';
71 assert(mbtowc(&wc, buf, 1) == 1);
76 buf[0] = '\0';
77 assert(mbtowc(&wc, buf, 0) == -1);
89 memset(buf, 0xcc, sizeof(buf));
90 buf[0] = 0;
92 assert(mbtowc(&wc, buf, 1) == 0);
96 buf[0] = 'A';
97 assert(mbtowc(&wc, buf, 1) == 1);
102 buf[0] = '\0';
103 assert(mbtowc(&wc, buf, 0) == -1);
108 memset(buf, 0xcc, sizeof(buf));
109 buf[0] = 0xa3;
110 buf[1] = 0x00;
112 assert(mbtowc(&wc, buf, 1) == -1);
117 buf[1] = 0xc1;
118 assert(mbtowc(&wc, buf, 2) == 2);