home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / compiler / clib / sscanf.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: sscanf.c,v 1.1 1997/01/28 15:32:34 digulla Exp $
  4.  
  5.     Desc: ANSI C function sscanf()
  6.     Lang: english
  7. */
  8.  
  9. /*****************************************************************************
  10.  
  11.     NAME */
  12. #include <stdio.h>
  13.  
  14.     int sscanf (
  15.  
  16. /*  SYNOPSIS */
  17.     char       * str,
  18.     const char * format,
  19.     ...)
  20.  
  21. /*  FUNCTION
  22.     Scan the specified string and convert it into the arguments as
  23.     specified by format.
  24.  
  25.     INPUTS
  26.     str - The routine examines this string.
  27.     format - Format string. See scanf() for a description
  28.     ... - Arguments for the result
  29.  
  30.     RESULT
  31.     The number of converted parameters.
  32.  
  33.     NOTES
  34.  
  35.     EXAMPLE
  36.  
  37.     BUGS
  38.  
  39.     SEE ALSO
  40.     fscanf(), vscanf(), vfscanf(), snscanf(), vsscanf(),
  41.     vnsscanf()
  42.  
  43.     INTERNALS
  44.  
  45.     HISTORY
  46.     06.12.1996 digulla created
  47.  
  48. ******************************************************************************/
  49. {
  50.     int     retval;
  51.     va_list args;
  52.  
  53.     va_start (args, format);
  54.  
  55.     retval = vsscanf (str, format, args);
  56.  
  57.     va_end (args);
  58.  
  59.     return retval;
  60. } /* sscanf */
  61.  
  62.