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

  1. /*-----------------------------------------------------------------------*
  2.  * filename - vscanf.c
  3.  *
  4.  * function(s)
  5.  *        vscanf - performs formatted input from stdin
  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        vscanf - performs formatted input from stdin
  28.  
  29. Usage        int vscanf(const char *format, va_list param);
  30.  
  31. Prototype in    stdio.h
  32.  
  33. Description    see ...scanf
  34.  
  35. *---------------------------------------------------------------------*/
  36. int cdecl vscanf (const char *fmt, va_list ap)
  37.   {
  38.   return( _scanner( (int near (*)(void *))_Nfgetc,
  39.                     (void near (*)(int, void *))_Nungetc,
  40.                     stdin,
  41.                     fmt,
  42.                     ap ) );
  43.   }
  44.