pos=(p1)
public
Synonym for Dir#seek, but returns the position parameter.
d = Dir.new("testdir")
d.read
i = d.pos
d.read
d.pos = i
d.read
Show source
/*
* call-seq:
* dir.pos( integer ) => integer
*
* Synonym for <code>Dir#seek</code>, but returns the position
* parameter.
*
* d = Dir.new("testdir")
* d.read
* i = d.pos
* d.read
* d.pos = i
* d.read
*/
static VALUE
dir_set_pos(dir, pos)
VALUE dir, pos;
{
dir_seek(dir, pos);
return pos;
}