4 * (C) Copyright 2001 Ullrich von Bassewitz (uz@cc65.org)
16 /*****************************************************************************/
18 /*****************************************************************************/
22 int sscanf (const char* str, const char* format, ...)
23 /* Standard C function */
28 /* Initialize the indesc struct. We leave all fields uninitialized that we
32 id.fill = strlen (str);
34 /* Setup for variable arguments */
35 va_start (ap, format);
37 /* Call the internal function. Since we know that va_end won't do anything,
38 * we will save the call and return the value directly.
40 return _scanf (&id, (const char*) va_fix (ap, 2), ap);