about summary refs log tree commit diff
path: root/stdio-common/scanf1.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/scanf1.c')
-rw-r--r--stdio-common/scanf1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdio-common/scanf1.c b/stdio-common/scanf1.c
index 3adf532250..58c78c2292 100644
--- a/stdio-common/scanf1.c
+++ b/stdio-common/scanf1.c
@@ -2,14 +2,14 @@
 #include  <stdlib.h>
 
 int
-main(int argc, char *argv[])
+main (int argc, char *argv[])
 {
   int i,n,r;
 
   n = i = r = -1;
-  r = sscanf("1234:567", "%d%n", &i, &n);
-  printf("%d %d %d\n", r, n, i);
-  if (r != 1 || i != 1234 || n != 4)
+  r = sscanf ("1234:567", "%d%n", &i, &n);
+  printf ("%d %d %d\n", r, n, i);
+  if (r != 2 || i != 1234 || n != 4)
     abort ();
   return 0;
 }