Method: IO#printf

Defined in:
io.c

#printf(format_string, *objects) ⇒ nil

Formats and writes objects to the stream.

For details on format_string, see Format Specifications.

Returns:

  • (nil)


8606
8607
8608
8609
8610
8611
# File 'io.c', line 8606

VALUE
rb_io_printf(int argc, const VALUE *argv, VALUE out)
{
    rb_io_write(out, rb_f_sprintf(argc, argv));
    return Qnil;
}