popen3

windows版本popen3函数

整理了下10年08月给 fossil 捐的代码  implementation of function “popen2” on win32——参考自 Creating a Child Process with Redirected Input and Output

做了个windows下通用版本,发到github

 

linux的版本可参见这个实现:

https://gist.github.com/nitrogenlogic/1022231/raw/85f21ac82ae81bf8dd335699b91b00f6c3e259b5/popen3_2011.c

 

python 也有这个 popen3 函数,但可惜它是用python实现的。

posted on 2013-10-22 16:43  JesseFang  阅读(370)  评论(0编辑  收藏  举报