/* * call-seq: * strio.pos -> integer * strio.tell -> integer * * Returns the current offset (in bytes) of *strio*. */ static VALUE strio_get_pos(self) VALUE self; { return LONG2NUM(StringIO(self)->pos); }