[comp.lang.c++] dup

nieh@nnn.crd.ge.com (Ko-Haw Nieh) (02/02/90)

I used the following code in some of my normal C program 

  close(1); dup(fd); close(fd)

What is the equivalent C++ code by using the <iostream.h> ?

Thanks in advance.

--

Ko-Haw Nieh

General Electric Company            | nieh@crd.ge.com
Corporate Research and Development  | uunet!crd.ge.com!nieh
P.O BOX 8, K1-ES224 		    | FAX : 518-387-5508 or 518-387-7258
Schenectady, NY 12301               | TEL : 518-387-7431