4 * (c) Copyright 2004, Ullrich von Bassewitz <uz@cc65.org>
15 /* Type of the function that is called to input data. The function will
16 * return EOF if no more data is available.
18 typedef int __fastcall__ (*getfunc) (void* data);
20 /* Type of the function that is called to put back unused data */
21 typedef int __fastcall__ (*ungetfunc) (int c, void* data);
25 /* Control structure passed to the low level worker function.
26 * Beware: This structure is mirrored in the _scanf.inc assembler include
27 * file, so check this when altering the structure.
30 getfunc get; /* Pointer to input routine */
31 ungetfunc unget; /* Pointer to pushback routine */
32 void* data; /* Pointer to struct. used outside of _scanf() */
37 /* Internal scanning routine */
38 int __fastcall__ _scanf (const struct scanfdata* d, const char* format, va_list ap);