to_i()
public
Returns the bits in stat as a Fixnum. Poking around in these bits is
platform dependent.
fork { exit 0xab }
Process.wait
sprintf('%04x', $?.to_i)
Show source
/*
* call-seq:
* stat.to_i => fixnum
* stat.to_int => fixnum
*
* Returns the bits in _stat_ as a <code>Fixnum</code>. Poking
* around in these bits is platform dependent.
*
* fork { exit 0xab }
* Process.wait
* sprintf('%04x', $?.to_i)
*/
static VALUE
pst_to_i(st)
VALUE st;
{
return rb_iv_get(st, "status");
}