计算机科学中的进程I/O函数,与pclose函数一起使用。
Caution: using pipe is complex compared to popen !
警告:使用pipe比使用popen复杂!
This is done with the system call popen(), which can open to a pipe to another process, either for reading or writing.
这是用系统调用 popen() 完成的,它打开到另一个进程的管道以用于读或写。
It shows appropriate use of some system calls and library functions from c, including fopen, fclose, access, setvbuf, perror, strerror, and popen.
它演示了对一些系统调用和c库函数的适当使用,其中包括fopen、fclose、access、setvbuf、perror、strerror和popen。
应用推荐