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;
}