streambuf
objects
The gnu streambuf
class supports printf
-like formatting and scanning.
fprintf(file, format, ...)
. The format is a printf
-style format control string, which is used to format the (variable number of) arguments, printing the result on the this
streambuf. The result is the number of characters printed.
vfprintf(file, format, args)
. The format is a printf
-style format control string, which is used to format the argument list args, printing the result on the this
streambuf. The result is the number of characters printed.
fscanf(file, format, ...)
. The format is a scanf
-style format control string, which is used to read the (variable number of) arguments from the this
streambuf. The result is the number of items assigned, or EOF
in case of input failure before any conversion.
streambuf::scan
, but takes a single va_list
argument.