Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • dl/dl.c

Parent

Methods

IO

Public Instance Methods

to_ptr() click to toggle source
 
               VALUE
rb_io_to_ptr(VALUE self)
{
  rb_io_t *fptr;
  FILE     *fp;

  GetOpenFile(self, fptr);
  fp = fptr->f;

  return fp ? rb_dlptr_new(fp, 0, 0) : Qnil;
}