static VALUE
strio_gets(int argc, VALUE *argv, VALUE self)
{
struct getline_arg arg;
VALUE str;
if (prepare_getline_args(&arg, argc, argv)->limit == 0) {
return rb_str_new(0, 0);
}
str = strio_getline(&arg, readable(self));
rb_lastline_set(str);
return str;
}