File_Type popen (String_Type cmd, String_Type mode)
The popen function executes a process specified by cmd
and opens a unidirectional pipe to the newly created process. The
mode indicates whether or not the pipe is open for reading
or writing. Specifically, if mode is "r", then the
pipe is opened for reading, or if mode is "w", then the
pipe will be open for writing.
Upon success, a File_Type pointer will be returned, otherwise
the function failed and NULL will be returned.
This function is not available on all systems.
- slangrtl
-
clearerr,
fclose,
fdopen,
feof,
ferror,
fflush,
fgets,
fgetslines,
fileno,
fopen,
fputs,
fread,
fseek,
ftell,
fwrite,
isatty,
mkdir,
open,
pclose,
system
|