X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fvsscanf.c;h=4998b68ce0cd1bc248d2110a251f600bb44901f0;hb=2f13296a39de23e7ea4cdda37f13ff214147c6be;hp=d79ec0ba72908b843f59c6fa5166cda8d43e97e4;hpb=b1fc26afebd4d557ff89a44bc21767a8704c3809;p=pdclib diff --git a/functions/stdio/vsscanf.c b/functions/stdio/vsscanf.c index d79ec0b..4998b68 100644 --- a/functions/stdio/vsscanf.c +++ b/functions/stdio/vsscanf.c @@ -6,9 +6,9 @@ #include #include +#include #ifndef REGTEST -#include int vsscanf( const char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, va_list arg ) { @@ -21,7 +21,7 @@ int vsscanf( const char * _PDCLIB_restrict s, const char * _PDCLIB_restrict form status.current = 0; status.s = (char *) s; status.width = 0; - status.prec = 0; + status.prec = EOF; status.stream = NULL; va_copy( status.arg, arg ); @@ -87,7 +87,7 @@ int vsscanf( const char * _PDCLIB_restrict s, const char * _PDCLIB_restrict form #define _PDCLIB_FILEID "stdio/vsscanf.c" #define _PDCLIB_STRINGIO -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" static int testscanf( char const * stream, char const * format, ... ) {