]> git.sur5r.net Git - cc65/blob - libsrc/common/sscanf.c
New loadable mouse drivers
[cc65] / libsrc / common / sscanf.c
1 /*
2  * sscanf.c
3  *
4  * (C) Copyright 2001-2002 Ullrich von Bassewitz (uz@cc65.org)
5  *
6  */
7
8
9
10 #include <stdio.h>
11
12
13
14 /*****************************************************************************/
15 /*                                   Code                                    */
16 /*****************************************************************************/
17
18
19
20 int sscanf (const char* str, const char* format, ...)
21 /* Standard C function */
22 {
23     va_list ap;
24
25     /* Setup for variable arguments */
26     va_start (ap, format);
27
28     /* Call vsscanf(). Since we know that va_end won't do anything, we will
29      * save the call and return the value directly.
30      */
31     return vsscanf (str, format, ap);
32 }
33
34
35