摘要: popen和pclose调用后实现的操作是:创建一个管道,fork一个子进程,关闭未使用的管道端,在子进程执行shell命令。函数原型如下: #include <stdio.h> FILE* popen(const char* cmdstring,const char* type) cmdstrin 阅读全文
posted @ 2020-05-21 11:02 晨枫1 阅读(298) 评论(0) 推荐(0) 编辑