Extracted from Pike v7.6 release 13 at 2006-10-17.
pike.ida.liu.se
[Top]
Stdio
Stdio.File

Method Stdio.File()->dup2()


Method dup2

int dup2(Stdio.File to)

Description

Duplicate a file over another.

This function works similarly to assign() , but instead of making the argument a reference to the same file, it creates a new file with the same properties and places it in the argument.

See also

assign() , dup()