mirror of
https://github.com/cc65/cc65.git
synced 2024-11-08 13:04:52 +00:00
b1d4e1613b
standard version than before, and it does support the necessary functionality to support scanf functions for files. Added vfscanf, fscanf and vfscanf. git-svn-id: svn://svn.cc65.org/cc65/trunk@3301 b7a2c559-68d2-44c3-8de9-860c34a00d81
37 lines
631 B
C
37 lines
631 B
C
/*
|
|
* scanf.c
|
|
*
|
|
* Ullrich von Bassewitz (uz@cc65.org), 2004-11-26
|
|
*
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
/* Code */
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
int scanf (const char* format, ...)
|
|
/* Standard C function */
|
|
{
|
|
va_list ap;
|
|
|
|
/* Setup for variable arguments */
|
|
va_start (ap, format);
|
|
|
|
/* Call vfscanf(). Since we know that va_end won't do anything, we will
|
|
* save the call and return the value directly.
|
|
*/
|
|
return vfscanf (stdin, format, ap);
|
|
}
|
|
|
|
|
|
|
|
|