pos=(p1)
  public
  
    
    
Seeks to the given position (in bytes)
in strio.
   
  
    Show source    
    
      static VALUE
strio_set_pos(VALUE self, VALUE pos)
{
    struct StringIO *ptr = StringIO(self);
    long p = NUM2LONG(pos);
    if (p < 0) {
        error_inval(0);
    }
    ptr->pos = p;
    return pos;
}