

popen()                   STDIO Function                  popen()




Open a pipe

#include <stdio.h>
FFIILLEE *ppooppeenn(_c_o_m_m_a_n_d, _h_o_w)
cchhaarr *_c_o_m_m_a_n_d, *_h_o_w;

popen opens a pipe.  It resembles the function fopen, except that
the opened object is a command line to the shell sh rather than a
file.

The caller can read the standard output of command when how is rr,
or write to  the standard input of command when  how is ww.  popen
returns a pointer  to a FFIILLEE structure that may  be read or writ-
ten.

***** Files *****

<stdio.h>

***** See Also *****

fclose(), fopen(), pclose(), pipe(), sh, STDIO, system(), wait()

***** Diagnostics *****

popen  returns NULL  if  the link  to  command could  not be  es-
tablished.





























COHERENT Lexicon                                           Page 1


