#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.
not ANSI, POSIX
FILE *f = popen("sort", "w"); write_to_pipe(f); pclose(f);
Go to the first, previous, next, last section, table of contents.