home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 1.ddi / CLIBSRC.ZIP / VFSCANF.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.2 KB  |  44 lines

  1. /*-----------------------------------------------------------------------*
  2.  * filename - vfscanf.c
  3.  *
  4.  * function(s)
  5.  *        vfscanf - performs formatted input from a stream
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 5.0
  10.  *
  11.  *      Copyright (c) 1987, 1992 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16.  
  17. #include <stdarg.h>
  18. #include <stdio.h>
  19. #include <_stdio.h>
  20. #include <_scanf.h>
  21.  
  22. #undef   ungetc         /* remove the macro version */
  23.  
  24. /*---------------------------------------------------------------------*
  25.  
  26. Name            vfscanf - performs formatted input from a stream
  27.  
  28. Usage           #include <stdio.h>
  29.                 int vfscanf(FILE *stream, char *format, va_list param);
  30.  
  31. Prototype in    stdio.h
  32.  
  33. Description     see ...scanf
  34.  
  35. *---------------------------------------------------------------------*/
  36. int cdecl _FARFUNC vfscanf( FILE *fp, const char *fmt, va_list ap )
  37.   {
  38.   return( _scanner( (int near (*)(void *))_Nfgetc,
  39.                     (void near (*)(int, void *))_Nungetc,
  40.                     fp,
  41.                     fmt,
  42.                     ap ) );
  43.   }
  44.