/* * vsscanf * * the function that ANSI forgot... * * © 1994-1998 Straylight */ /*----- Licensing note ----------------------------------------------------* * * This file is part of Straylight's Steel library. * * Steel is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * Steel is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Steel. If not, write to the Free Software Foundation, * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __vsscanf_h #define __vsscanf_h #ifndef __stdarg_h #include #endif /* * int vsscanf(char *string,char *format,va_list ap) * * Use * vsscanf() should be an alternative entry point for sscanf(). * Unfortunately, it doesn't exist, so it has been reimplemented. It is as * compatible with sscanf() as I can make it. It supports all features of * the original, including scansets and things. * * Parameters * char *string == the string to parse * char *format == the format string * va_list ap == pointer to variable length parameters list. If there are * too many arguments, they are ignored. If there are too few, the * machine will problably crash. * * Returns * The number of arguments assigned with values. */ int vsscanf(char *string,char *format,va_list ap); #endif