Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!msuinfo!rudolf.nscl.msu.edu!fox From: fox@rudolf.nscl.msu.edu (Ron Fox) Newsgroups: comp.unix.wizards Subject: Re: How can I write an FPIPE() ????? Message-ID: <1991Feb8.135841.8636@msuinfo.cl.msu.edu> Date: 8 Feb 91 13:58:41 GMT References: <1991Feb7.200302.4945@dmntor.UUCP> Sender: news@msuinfo.cl.msu.edu Reply-To: fox@rudolf.nscl.msu.edu (Ron Fox) Organization: National Superconducting Cyclotron Lab. Lines: 22 -- In article <1991Feb7.200302.4945@dmntor.UUCP>, djm@dmntor.UUCP (David McKellar) writes: >Quick description: > > I know all about pipe() and popen() but I want a fpipe(). > AND I can't figure out how to do it!!! > You're going to feel a bit foolish... look at the routine fdopen() (3s) It opens a stream (FILE * type) given as input a file descriptor (what pipe() returns). Ron Ron Fox | FOX@MSUNSCL.BITNET | Where the name NSCL | FOX@RUDOLF.NSCL.MSU.EDU | goes on before Michigan State University | MSUHEP::RUDOLF::FOX | the quality East Lansing, MI 48824-1321 | | goes in. USA