头文件
1#include <stdio.h>
函数
1FILE * popen ( const char * command , const char * type ); 2int pclose ( FILE * stream );
注意
正确关闭由popen打开的I/O流使用pclose函数,不能使用fclose函数,否则就会造成僵尸进程。