在线咨询在线咨询
育龙论坛育龙论坛
在线报名在线报名
在线留言在线留言
投诉建议投诉建议
在线投稿在线投稿
收藏本页收藏本页
use popen programming
育龙网 WWW.CHINA-B.C0M 2009年06月12日 来源:互联网
育龙网核心提示: use popen ====================================================================from: NAMEpopen - initiate pipe streams t
use popen
====================================================================
from:
NAME
popen - initiate pipe streams to or from a process
SYNOPSIS
#include <stdio.h>
FILE popen;
DESCRIPTION
Thepopenfunction executes the command specified by the stringcommand.It creates a pipe between the calling program and the executed command, andreturns a pointer to a stream that can be used to either read from or write tothe pipe.
If the implementation supports the referenced XCU specification, the environment of theexecuted command will be as if a child process were created within thepopencall usingfork,and the child invoked theshutility using the call: