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

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: fscanf.c,v 1.1 1997/01/28 15:32:32 digulla Exp $
  4.  
  5.     Desc: ANSI C function fscanf()
  6.     Lang: english
  7. */
  8. #include <stdarg.h>
  9.  
  10. /*****************************************************************************
  11.  
  12.     NAME */
  13. #include <stdio.h>
  14.  
  15.     int fscanf (
  16.  
  17. /*  SYNOPSIS */
  18.     FILE       * fh,
  19.     const char * format,
  20.     ...)
  21.  
  22. /*  FUNCTION
  23.     Scan a string with the specified arguments and write the results
  24.     in the specified parameters.
  25.  
  26.     INPUTS
  27.     fh - Read from this stream
  28.     format - How to convert the input into the arguments
  29.     ... - Write the result in these arguments
  30.  
  31.     RESULT
  32.     The number of converted arguments.
  33.  
  34.     NOTES
  35.  
  36.     EXAMPLE
  37.  
  38.     BUGS
  39.  
  40.     SEE ALSO
  41.     scanf()
  42.  
  43.     INTERNALS
  44.  
  45.     HISTORY
  46.     10.12.1996 digulla created
  47.  
  48. ******************************************************************************/
  49. {
  50.     int     retval;
  51.     va_list args;
  52.  
  53.     va_start (args, format);
  54.  
  55.     retval = vfscanf (fh, format, args);
  56.  
  57.     va_end (args);
  58.  
  59.     return retval;
  60. } /* fscanf */
  61.  
  62.