home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / clib / vfscanf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-28  |  1.0 KB  |  53 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: vfscanf.c,v 1.1 1997/01/28 15:32:34 digulla Exp $
  4.  
  5.     Desc: Scan a stream and write the result in the parameters
  6.     Lang: english
  7. */
  8. /* Original source from libnix */
  9. #define AROS_ALMOST_COMPATIBLE
  10.  
  11. /*****************************************************************************
  12.  
  13.     NAME */
  14. #include <stdio.h>
  15. #include <stdarg.h>
  16.  
  17.     int vfscanf (
  18.  
  19. /*  SYNOPSIS */
  20.     FILE       * stream,
  21.     const char * format,
  22.     va_list      args)
  23.  
  24. /*  FUNCTION
  25.     Read the scream, scan it as the format specified and write the
  26.     result of the conversion into the specified arguments.
  27.  
  28.     INPUTS
  29.     stream - A stream to read from
  30.     format - A scanf() format string.
  31.     args - A list of arguments for the results.
  32.  
  33.     RESULT
  34.     The number of converted arguments.
  35.  
  36.     NOTES
  37.  
  38.     EXAMPLE
  39.  
  40.     BUGS
  41.  
  42.     SEE ALSO
  43.  
  44.     INTERNALS
  45.  
  46.     HISTORY
  47.     28.01.1997 digulla created
  48.  
  49. ******************************************************************************/
  50. {
  51.     return __vcscan (stream, (void *)fgetc, (void *)ungetc, format, args);
  52. } /* vfscanf */
  53.