Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <stdio.h>
    int _pclose( FILE *fp );

Description:
    The _pclose function closes the pipe associated with fp and waits for
    the subprocess created by  _popen to terminate.

Returns:
    The _pclose function returns the termination status of the command
    language interpreter.  If an error occured, _pclose returns (-1) with
     errno set appropriately.

Errors:
    When an error has occurred,  errno contains a value indicating the type
    of error that has been detected.

    EINTR
        The _pclose function was interrupted by a signal while waiting for
        the child process to terminate.

    ECHILD
        The _pclose function was unable to obtain the termination status of
        the child process.


Example:
    See example provided with _popen.

Classification:
    WATCOM

Systems:
    Win32, OS/2 1.x(all), OS/2-32

See Also:
    perror, _pipe, _popen

See Also: _pipe

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson