mirror of
https://github.com/cc65/cc65.git
synced 2024-09-04 04:29:12 +00:00
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
638 B
C
37 lines
638 B
C
/*
|
|
* fscanf.c
|
|
*
|
|
* Ullrich von Bassewitz (uz@cc65.org), 2004-11-26
|
|
*
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
/* Code */
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
int fscanf (FILE* f, 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 (f, format, ap);
|
|
}
|
|
|
|
|
|
|
|
|