projects
/
kopensolaris-gnu
/
glibc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
update from main archive 961008
[kopensolaris-gnu/glibc.git]
/
stdio-common
/
scanf3.c
diff --git
a/stdio-common/scanf3.c
b/stdio-common/scanf3.c
index
6c840ed
..
33495cc
100644
(file)
--- 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);