small warning fix:
[mplayer/glamo.git] / osdep / vsscanf.c
blob49bfebe56ca703475d690149dc58a3155c6a73c0
1 #include "../config.h"
3 #ifndef HAVE_VSSCANF
4 /* system has no vsscanf. try to provide one */
6 #include <stdio.h>
7 #include <stdarg.h>
9 int
10 vsscanf(const char *str, const char *format, va_list ap)
12 /* XXX: can this be implemented in a more portable way? */
13 long p1 = va_arg(ap, long);
14 long p2 = va_arg(ap, long);
15 long p3 = va_arg(ap, long);
16 long p4 = va_arg(ap, long);
17 long p5 = va_arg(ap, long);
18 return sscanf(str, format, p1, p2, p3, p4, p5);
20 #endif