Lines Matching refs:res

192     int res, val, n;  in main()  local
194 res = sscanf ("-242", "%3o%n", &val, &n); in main()
195 printf ("res = %d, val = %d, n = %d\n", res, val, n); in main()
196 if (res != 1 || val != -20 || n != 3) in main()
206 int res, n; in main() local
208 res = sscanf ("1234567", "%3lg%3lg%n", &a, &b, &n); in main()
209 printf ("res = %d, a = %g, b = %g, n = %d\n", res, a, b, n); in main()
211 if (res != 2 || a != 123 || b != 456 || n != 6) in main()
217 res = sscanf ("0", "%lg", &a); in main()
218 printf ("res = %d, a = %g\n", res, a); in main()
220 if (res != 1 || a != 0) in main()
226 res = sscanf ("1e3", "%lg%n", &a, &n); in main()
227 printf ("res = %d, a = %g, n = %d\n", res, a, n); in main()
229 if (res != 1 || a != 1000 || n != 3) in main()
239 int res; in main() local
242 res = sscanf (buf, "%p", &p); in main()
243 printf ("sscanf (\"%s\", \"%%p\", &p) = %d, p == %p\n", buf, res, p); in main()
245 if (res != 1 || p != NULL) in main()
255 int res; in main() local
257 res = sscanf ("32767 1234", "%hd %hd", &a[0], &a[1]); in main()
258 printf ("res = %d, a[0] = %d, a[1] = %d\n", res, a[0], a[1]); in main()
260 if (res != 2 || a[0] != 32767 || a[1] != 1234) in main()
270 int res; in main() local
272 res = sscanf ("0x1234", "%lf", &d); in main()
273 printf ("res = %d, d = %f\n", res, d); in main()
275 if (res != 1 || d != 4660) in main()
286 int res; in main() local
288 res = sscanf ("0123", "%2f", &value); in main()
289 if (res != 1 || value != 1.0) in main()
299 int res; in main() local
301 res = sscanf ("--", "%f", &value); in main()
302 if (res != 0) in main()
312 int res; in main() local
314 res = sscanf ("uart:16550A tx:0", "uart:%31s tx:%*u", uart); in main()
315 if (res != 1) in main()
325 int res; in main() local
327 res = sscanf ("uart:16550A", "uart:%31s tx:%*u", uart); in main()
328 if (res != 1) in main()
338 int res; in main() local
340 res = sscanf ("-InF", "%f", &value); in main()
341 if (res != 1 || isinf (value) != -1) in main()
347 res = sscanf ("+InfiNiTY", "%f", &value); in main()
348 if (res != 1 || isinf (value) != 1) in main()