摘要:
popen可以是系统命令,也可以是自己写的程序a.out。 假如a.out就是打印 “hello world“ 在代码中,想获取什么,都可以通过popen获取。 比如获取ls的信息, 比如获取自己写的程序的内容:“hello world” 。 https://www.cnblogs.com/syla 阅读全文
posted @ 2020-04-01 16:09
zxiaocheng
阅读(403)
评论(0)
推荐(0)
摘要:
简单说一下popen()函数 函数定义 1 2 3 #include <stdio.h> FILE * popen(const char *command , const char *type ); int pclose(FILE *stream); 函数说明 popen()函数通过创建一个管道,调 阅读全文
posted @ 2020-04-01 15:58
zxiaocheng
阅读(1570)
评论(0)
推荐(0)
浙公网安备 33010602011771号