vprintf method

int vprintf(
  1. String format,
  2. va_list arg
)

Prints formatted output to stdout using a va_list, returning the character count.

See printf for the supported format specifier syntax.

Implementation

int vprintf(String format, va_list arg) {
  final result = vsprintf(format, arg);
  stdioWrite(result);
  return result.length;
}