]> pd.if.org Git - pdclib/blob - functions/stdio/scanf.c
cafdf58717785738c3dfc1919dd41b216ffa3fe7
[pdclib] / functions / stdio / scanf.c
1 /* $Id$ */
2
3 /* scanf( const char *, ... )
4
5    This file is part of the Public Domain C Library (PDCLib).
6    Permission is granted to use, modify, and / or redistribute at will.
7 */
8
9 #include <stdio.h>
10 #include <stdarg.h>
11
12 #ifndef REGTEST
13
14 int scanf( const char * _PDCLIB_restrict format, ... )
15 {
16     va_list ap;
17     va_start( ap, format );
18     return vfscanf( stdin, format, ap );
19 }
20
21 #endif
22
23 #ifdef TEST
24 #include <_PDCLIB_test.h>
25
26 int main( void )
27 {
28     TESTCASE( NO_TESTDRIVER );
29     return TEST_RESULTS;
30 }
31
32 #endif