X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fvscanf.c;h=3adde22e0868bd5d65cfdd7b17a33d865eea82b7;hb=326f9b37c5bbc8b8da0aa62c3ea04833eea4963c;hp=14d69f71f93ffd84f912d6ea1312ff827f51f775;hpb=e5456e3c2697c4e17fc9aa3439f2e305517b4d96;p=pdclib.old diff --git a/functions/stdio/vscanf.c b/functions/stdio/vscanf.c index 14d69f7..3adde22 100644 --- a/functions/stdio/vscanf.c +++ b/functions/stdio/vscanf.c @@ -1,9 +1,32 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- +/* $Id$ */ -int vscanf( const char * restrict format, va_list ap ) { /* TODO */ }; +/* Release $Name$ */ +/* vscanf( const char *, va_list arg ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include +#include + +#ifndef REGTEST + +int vscanf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg ) +{ + return vfscanf( stdin, format, arg ); +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + TESTCASE( NO_TESTDRIVER ); + return TEST_RESULTS; +} + +#endif