[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <stdio.h> int pclose(FILE *pipe); |
This function closes a pipe opened with popen
(see section popen).
Note that since MS-DOS is not multitasking, this function will actually
run the program specified in popen
if the pipe was opened for
writing.
Zero on success, nonzero on failure.
ANSI/ISO C | No |
POSIX | 1003.2-1992; 1003.1-2001 |
FILE *f = popen("sort", "w"); write_to_pipe(f); pclose(f); |