File:  [DVB] / dietlibc / libstdio / vfscanf.c
Revision 1.1: download - view: text, annotated - select for diffs
Wed Jul 11 22:29:08 2001 UTC (22 years, 10 months ago) by olaf
Branches: MAIN
CVS tags: finnland_test_200301, branch_rc14_fieldtest_finnland, branch_rc13_fieldtest_finnland, branch_rc12_fieldtest_finnland, branch_rc10_fieldtest_finnland, RELEASE_finnland_200301_1, RC12_FIELDTEST_FINNLAND, RC10_FIELDTEST_FINNLAND, HEAD
Today was the day (aeh yesterday was the start now the stop...) I have
implemented all the *scanf functions (yes even sose crapy stdio variants..)
Now I... WE have to test them :) (other should have FUN too ...)

#include <stdarg.h>
#include <sys/types.h>
#include <stdlib.h>
#include "dietstdio.h"
#include <unistd.h>

int vfscanf(FILE *stream, const char *format, va_list arg_ptr)
{
  struct arg_scanf farg = { (void*)stream, (int(*)(void*))fgetc, (int(*)(int,void*))ungetc };
  return __v_scanf(&farg,format,arg_ptr);
}

LinuxTV legacy CVS <linuxtv.org/cvs>