Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!brutus.cs.uiuc.edu!uakari.primate.wisc.edu!aplcen!uunet!crdgw1!nieh From: nieh@nnn.crd.ge.com (Ko-Haw Nieh) Newsgroups: comp.lang.c++ Subject: dup() in c++ Message-ID: Date: 2 Feb 90 13:46:45 GMT Sender: news@crdgw1.crd.ge.com Reply-To: (Ko-Haw Nieh) Organization: GE Corp. R & D, Schenectady, NY Lines: 17 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 ? 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