home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 1.ddi / CLIB1.ZIP / VFSCANF.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  1.6 KB  |  45 lines

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