4 * (C) Copyright 2002 Ullrich von Bassewitz (uz@cc65.org)
15 /*****************************************************************************/
17 /*****************************************************************************/
21 static char get (struct indesc* d)
22 /* Read a character from the input string and return it */
25 if (C = d->buf[d->ridx]) {
26 /* Increment index only if end not reached */
34 int vsscanf (const char* str, const char* format, va_list ap)
35 /* Standard C function */
39 /* Initialize the indesc struct. We leave all fields uninitialized that we
42 id.fin = (infunc) get;
46 /* Call the internal function and return the result */
47 return _scanf (&id, format, ap);