void * data int (* getc(void * int (* ungetc(int void * const char * format va_list args
FUNCTION
Scan an input stream as specified in format. The result of the scan will be placed in args.
INPUTS
data
This is passed to the usercallback getc and ungetc
getc
This function gets called when the routine wants to read the next character. It whould return EOF when no more characters are available.
ungetc
This function gets called when the routine wants to put a read character back into the stream. The next call to getc should return this character. It is possible that this function is called more than once before the next getc.
format
A scanf() format string.
args
A list of arguments in which the result of the scan should be placed.