![]() |
![]() |
![]() |
Close a pipe
#include <stdio.h> int pclose( FILE* stream );
libc
The pclose() function closes the pipe associated with stream, and waits for the subprocess created by popen() to terminate.
The pclose() function returns the termination status of the command language interpreter. On error, pclose() returns -1, with errno set appropriately.
See popen().
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | No |
Thread | No |
![]() |
![]() |
![]() |