printf method

int printf(
  1. String format, [
  2. List args = const []
])

Prints formatted output to stdout.

Supports basic C-style format specifiers: %d, %i, %s, %f, %x, %X, %c, %%.

Implementation

int printf(String format, [List<dynamic> args = const []]) {
  final ap = va_start(args);
  final result = vprintf(format, ap);
  va_end(ap);
  return result;
}