| www.delorie.com/djgpp/doc/libc-2.01/libc_503.html | search |
#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.
FILE *f = popen("sort", "w");
write_to_pipe(f);
pclose(f);
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |