diff options
Diffstat (limited to 'testsuites/psxtests/psxhdrs/stdio/vscanf.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/stdio/vscanf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/stdio/vscanf.c b/testsuites/psxtests/psxhdrs/stdio/vscanf.c index 5ec0ddd5ae..a39b43ae53 100644 --- a/testsuites/psxtests/psxhdrs/stdio/vscanf.c +++ b/testsuites/psxtests/psxhdrs/stdio/vscanf.c @@ -37,13 +37,14 @@ #include <stdio.h> #include <stdarg.h> -int test( void ); +int test( int arg1, ... ); -int test( void ) +int test( int arg1, ... ) { va_list ap; int result; + va_start(ap, arg1); result = vscanf( " %d %99s ", ap ); return result; |