blob: be6d63e997a1eb6fbc47bdbe9c3582cfdf05cf70 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <stdio.h>
2#include <stdlib.h>
3
4int
5main (int argc, char *argv[])
6{
7 int i,n,r;
8
9 n = i = r = -1;
10 r = sscanf ("1234:567", "%d%n", &i, &n);
11 printf ("%d %d %d\n", r, n, i);
12 if (r != 1 || i != 1234 || n != 4)
13 abort ();
14 return 0;
15}