成都网站建设设计

将想法与焦点和您一起共享

[Linux管道和IPC]命名管道操作--命名管道通信发送客户端

#include 
#include 

#define FIFO_FILE "MYFIFO"

int main(int argc, char *argv[])
{
  FILE *fp;
  int i;
  if(argc < 2 ) //如果参数错误
  {
    printf("请使用: %s \n",argv[0]);
    exit(1);
  }
  if((fp=fopen(FIFO_FILE,"w"))==NULL) //打开文件
  {
    printf("打开文件失败. \n");
    exit(1);
  }
  for(i=1;i            
            
                                
本文标题:[Linux管道和IPC]命名管道操作--命名管道通信发送客户端
转载来于:http://chengdu.cdxwcx.cn/article/jhehdg.html