X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fscanf.c;h=612f151c17551d010ac5698c513bd266f81314c5;hb=c8f799d852e3698468a78954d82588e841cc0b70;hp=7ebb31da6e63fad22ba3f7806ad215453d6953be;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old diff --git a/functions/stdio/scanf.c b/functions/stdio/scanf.c index 7ebb31d..612f151 100644 --- a/functions/stdio/scanf.c +++ b/functions/stdio/scanf.c @@ -1,8 +1,20 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * This code is Public Domain. Use, modify, and redistribute at will. + * --------------------------------------------------------------------------*/ int scanf( const char * restrict format, ... ) { /* TODO */ }; + +/* PDPC code - unreviewed +{ + va_list arg; + int ret; + + va_start(arg, format); + ret = vvscanf(format, arg, stdin, NULL); + va_end(arg); + return (ret); +} +*/