>>(p1)
public
Shift the bits in stat right num places.
fork { exit 99 }
Process.wait
$?.to_i
$? >> 8
Show source
/*
* call-seq:
* stat >> num => fixnum
*
* Shift the bits in _stat_ right <em>num</em> places.
*
* fork { exit 99 }
* Process.wait
* $?.to_i
* $? >> 8
*/
static VALUE
pst_rshift(st1, st2)
VALUE st1, st2;
{
int status = NUM2INT(st1) >> NUM2INT(st2);
return INT2NUM(status);
}