putc(p1)
public
Equivalent to:
$stdout.putc(int)
Refer to the documentation for IO#putc for
important information regarding multi-byte characters.
Show source
static VALUE
rb_f_putc(VALUE recv, VALUE ch)
{
if (recv == rb_stdout) {
return rb_io_putc(recv, ch);
}
return rb_funcall2(rb_stdout, rb_intern("putc"), 1, &ch);
}