mkfifo ( “text.pipe” , 0666);. //打开文件. fd=opend( “text.pipe”, O_RDWR);. //循环写入数据. while(1). {. write(fd, & i , 4);. sleep(1);. i++;. } } fifoB.c.
確定! 回上一頁