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

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