(C) 1998 AROS - The Amiga Research OS


NAME

int __vcscan (void * , , )

SYNOPSIS
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.

RESULT
The number of arguments converted.

EXAMPLE

SEE ALSO

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
28.01.1997 digulla
Implemented scanf() functions