chiark / gitweb /
Initial revision
[ssr] / StraySrc / Libraries / Steel / h / vsscanf
1 /*
2  * vsscanf
3  *
4  *  the function that ANSI forgot...
5  *
6  * © 1994-1998 Straylight
7  */
8
9 /*----- Licensing note ----------------------------------------------------*
10  *
11  * This file is part of Straylight's Steel library.
12  *
13  * Steel is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2, or (at your option)
16  * any later version.
17  *
18  * Steel is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with Steel.  If not, write to the Free Software Foundation,
25  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26  */
27
28 #ifndef __vsscanf_h
29 #define __vsscanf_h
30
31 #ifndef __stdarg_h
32 #include <stdarg.h>
33 #endif
34
35 /*
36  * int vsscanf(char *string,char *format,va_list ap)
37  *
38  * Use
39  *  vsscanf() should be an alternative entry point for sscanf().  
40  *  Unfortunately, it doesn't exist, so it has been reimplemented.  It is as
41  *  compatible with sscanf() as I can make it.  It supports all features of
42  *  the original, including scansets and things.
43  *
44  * Parameters
45  *  char *string == the string to parse
46  *  char *format == the format string
47  *  va_list ap == pointer to variable length parameters list.  If there are
48  *    too many arguments, they are ignored.  If there are too few, the
49  *    machine will problably crash.
50  *
51  * Returns
52  *  The number of arguments assigned with values.
53  */
54
55 int vsscanf(char *string,char *format,va_list ap);
56
57 #endif