Try to provide a vsscanf() implementation, if the system does not have

vsscanf()


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2907 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
jkeil 2001-11-14 19:06:58 +00:00
parent 2f56bc761d
commit 85b2b1ad67
1 changed files with 13 additions and 0 deletions

View File

@ -47,7 +47,20 @@
#include <kstat.h>
#endif
#if HAVE_VSSCANF
int vsscanf( const char *str, const char *format, va_list ap);
#else
/* system has no vsscanf. try to provide one */
static int vsscanf( const char *str, const char *format, va_list ap)
{
long p1 = va_arg(ap, long);
long p2 = va_arg(ap, long);
long p3 = va_arg(ap, long);
long p4 = va_arg(ap, long);
long p5 = va_arg(ap, long);
return sscanf(str, format, p1, p2, p3, p4, p5);
}
#endif
char* def_path = WIN32_PATH;