Lines Matching refs:a

74 	char a[100], b[100], c[100];  in test_sscanf()  local
95 TEST(i, sscanf("hello, world\n", "%s %s", a, b), 2, "only %d fields, expected %d"); in test_sscanf()
96 TEST_S(a, "hello,", ""); in test_sscanf()
99 memset(a, 0, sizeof(a)); in test_sscanf()
102 TEST(i, sscanf("hello, world\n", "%6c %5c%c", a, b, c), 3, "only %d fields, expected %d"); in test_sscanf()
103 TEST_S(a, "hello,", ""); in test_sscanf()
107 TEST(i, sscanf("hello, world\n", "%[hel]%s", a, b), 2, "only %d fields, expected %d"); in test_sscanf()
108 TEST_S(a, "hell", ""); in test_sscanf()
111 TEST(i, sscanf("hello, world\n", "%[hel] %s", a, b), 2, "only %d fields, expected %d"); in test_sscanf()
112 TEST_S(a, "hell", ""); in test_sscanf()
115 TEST(i, sscanf("elloworld", "%1[abcdefg]%s", a, b), 2, "only %d fields, expected %d"); in test_sscanf()
116 TEST_S(a, "e", ""); in test_sscanf()
119 TEST(i, sscanf("elloworld", "%5[a-z]%s", a, b), 2, "only %d fields, expected %d"); in test_sscanf()
120 TEST_S(a, "ellow", ""); in test_sscanf()
126 TEST(i, sscanf("㌰ello, ✕orld\n", "%s %s", a, b), 2, "only %d fields, expected %d"); in test_sscanf()
127 TEST_S(a, "㌰ello,", ""); in test_sscanf()
130 memset(a, 0, sizeof(a)); in test_sscanf()
133 TEST(i, sscanf("㌰ello, ✕orld\n", "%8c %7c%c", a, b, c), 3, "only %d fields, expected %d"); in test_sscanf()
134 TEST_S(a, "㌰ello,", ""); in test_sscanf()
138 TEST(i, sscanf("㌰ello, ✕orld\n", "%[㌰el]%s", a, b), 2, "only %d fields, expected %d"); in test_sscanf()
139 TEST_S(a, "㌰ell", ""); in test_sscanf()
142 TEST(i, sscanf("㌰ello, ✕orld\n", "%[㌰el] %s", a, b), 2, "only %d fields, expected %d"); in test_sscanf()
143 TEST_S(a, "㌰ell", ""); in test_sscanf()
165 TEST_S(a, "㌰ell", ""); in test_sscanf()
170 TEST(i, swscanf(L"hello, world\n", L"%s %s", a, b), 2, "only %d fields, expected %d"); in test_sscanf()
171 TEST_S(a, "hello,", ""); in test_sscanf()
174 TEST(i, swscanf(L"㌰ello, ✕orld\n", L"%s %s", a, b), 2, "only %d fields, expected %d"); in test_sscanf()
175 TEST_S(a, "㌰ello,", ""); in test_sscanf()
178 memset(a, 0, sizeof(a)); in test_sscanf()
181 TEST(i, swscanf(L"hello, world\n", L"%6c %5c%c", a, b, c), 3, "only %d fields, expected %d"); in test_sscanf()
182 TEST_S(a, "hello,", ""); in test_sscanf()
186 memset(a, 0, sizeof(a)); in test_sscanf()
189 … TEST(i, swscanf(L"㌰ello, ✕orld\n", L"%6c %5c%c", a, b, c), 3, "only %d fields, expected %d"); in test_sscanf()
190 TEST_S(a, "㌰ello,", ""); in test_sscanf()
210 a[8] = 'X'; in test_sscanf()
211 a[9] = 0; in test_sscanf()
213 TEST(i, sscanf("hello, world\n", "%8c%8c", a, b), 1, "%d fields, expected %d"); in test_sscanf()
214 TEST_S(a, "hello, wX", ""); in test_sscanf()
217 a[0] = '#'; in test_sscanf()
218 a[1] = '\0'; in test_sscanf()
219 TEST(i, sscanf(" Nan(98b)", "%lf%c", &d, a), 1, "got %d fields, expected %d"); in test_sscanf()
221 TEST_S(a, "#", ""); in test_sscanf()
224 a[0] = '#'; in test_sscanf()
225 a[1] = '\0'; in test_sscanf()
227 TEST(i, sscanf("NaN(abcdefg", "%lf%c", &d, a), -1, "got %d fields, expected %d"); in test_sscanf()
229 TEST_S(a, "#", ""); in test_sscanf()
232 a[0] = '#'; in test_sscanf()
233 a[1] = '\0'; in test_sscanf()
235 TEST(i, sscanf("NaN(12:b)", "%lf%c", &d, a), 0, "got %d fields, expected %d"); in test_sscanf()
237 TEST_S(a, "#", ""); in test_sscanf()
240 a[0] = '#'; in test_sscanf()
241 a[1] = '\0'; in test_sscanf()
243 TEST(i, sscanf("Nan(12345)", "%9lf%c", &d, a), 0, "got %d fields, expected %d"); in test_sscanf()
245 TEST_S(a, "#", ""); in test_sscanf()
248 a[0] = '#'; in test_sscanf()
249 a[1] = '\0'; in test_sscanf()
251 TEST(i, sscanf("inf(12b)", "%lf%c", &d, a), 2, "got %d fields, expected %d"); in test_sscanf()
253 TEST_S(a, "(", ""); in test_sscanf()
256 a[0] = '#'; in test_sscanf()
257 a[1] = '\0'; in test_sscanf()
259 TEST(i, sscanf("infinity(abcd)", "%lf%c", &d, a), 2, "got %d fields, expected %d"); in test_sscanf()
261 TEST_S(a, "(", ""); in test_sscanf()
264 …TEST(i, sscanf("56789 0123 56a72", "%2d%d%*d %[0123456789]\n", &x, &y, a), 3, "only %d fields, exp… in test_sscanf()
267 TEST_S(a, "56", ""); in test_sscanf()