* hurd/hurdsig.c (write_corefile): Fix typo.
[glibc/history.git] / stdio-common / scanf1.c
blob3adf5322509d55207a78d957e461a440e97b3be2
1 #include <stdio.h>
2 #include <stdlib.h>
4 int
5 main(int argc, char *argv[])
7 int i,n,r;
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;