diff options
Diffstat (limited to 'stdio-common/scanf3.c')
-rw-r--r-- | stdio-common/scanf3.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/stdio-common/scanf3.c b/stdio-common/scanf3.c index 6c840ed428..33495cca79 100644 --- a/stdio-common/scanf3.c +++ b/stdio-common/scanf3.c @@ -1,13 +1,12 @@ #include <stdio.h> #include <stdlib.h> -int main(int arc, char *argv) +int +main(int arc, char *argv[]) { int n, res; unsigned int val; - char *s; - - s = "111"; + char s[] = "111"; val = n = -1; res = sscanf(s, "%u %n", &val, &n); |