4 * (C) Copyright 2001 Ullrich von Bassewitz (uz@cc65.org)
18 /* Type of the function that is called to input data. The function will
19 * return EOF if no more data is available.
21 typedef char (*infunc) (struct indesc* desc);
25 /* Control structure passed to the low level worker function.
26 * Beware: The low level functions will access the structure on the assembly
27 * level, so check this when altering the structure.
30 infunc fin; /* Pointer to input routine */
31 unsigned ccount; /* Number of chars read */
33 /* Fields used outside from _scanf */
34 char* buf; /* Pointer to input buffer */
35 unsigned size; /* Size of input buffer */
36 unsigned fill; /* Fill mark of input buffer */
37 unsigned ridx; /* Read index of input buffer */
42 /* Internal scanning routine */
43 int _scanf (struct indesc* d, const char* format, va_list ap);