ppcclloossee() -- STDIO Function (libc)

Close a pipe
#iinncclluuddee <ssttddiioo.hh>
iinntt ppcclloossee(_f_p)
FFIILLEE *_f_p;

ppcclloossee() closes the  pipe pointed to by _f_p, which  must have been opened by
the function ppooppeenn().

ppcclloossee()  awaits the  completion of  the child  process and  performs other
cleanup.  It returns the value from a WWAAIITT done on the child process.  This
value includes information in addition  to the ``simple'' exit value of the
child process.

_E_x_a_m_p_l_e
For an example of this function, see the Lexicon entry for ppooppeenn.

_F_i_l_e_s
<ssttddiioo.hh>

_S_e_e _A_l_s_o
ffcclloossee(), ffooppeenn(), lliibbcc, ppiippee(), ppooppeenn(), sshh, ssyysstteemm(), wwaaiitt()

_D_i_a_g_n_o_s_t_i_c_s
ppcclloossee()  returns -1  if _f_p  had  not been  created by  a call  to ppooppeenn().
Otherwise, ppcclloossee()  returns the exit status of the  _c_o_m_m_a_n_d, in the format
described in  the entry for  wwaaiitt(): exit status  in the high  byte, signal
information in the low byte.
