Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / clib / vsscanf.c
bloba08c65b7a918db69919229c6dd543d3d9f4f0490
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 C function vsscanf().
6 */
7 /* Original source from libnix */
8 #include <stdio.h>
10 static int _vsscanf_get (char ** str)
12 if (!**str)
13 return EOF;
15 return *(*str)++;
18 static int _vsscanf_unget (int c, char ** str)
20 (*str)--;
22 return c;
25 /*****************************************************************************
27 NAME */
28 #include <stdio.h>
29 #include <stdarg.h>
31 int vsscanf (
33 /* SYNOPSIS */
34 const char *str,
35 const char *format,
36 va_list args)
38 /* FUNCTION
39 Scan a string and convert it into the arguments as specified
40 by format.
42 INPUTS
43 str - Scan this string
44 format - A scanf() format string.
45 args - A list of arguments for the results
47 RESULT
48 The number of arguments converted.
50 NOTES
52 EXAMPLE
54 BUGS
56 SEE ALSO
57 scanf(), sscanf(), fscanf(), vscanf(), vfscanf(), snscanf(),
58 vsnscanf()
60 INTERNALS
62 ******************************************************************************/
64 int rc;
66 rc = __vcscan (&str,
67 (void *)_vsscanf_get,
68 (void *)_vsscanf_unget,
69 format,
70 args
73 return rc;
74 } /* vsscanf */