program6.c~

来自「内含6个Linux平台下的程序」· C~ 代码 · 共 22 行

C~
22
字号
#include <sys/types.h>#include <sys/stat.h>#include <stdio.h>#include <fcntl.h>main(){int fd,n;int fdnum1;char buf[256];fd = open("fifo",O_RDONLY);creat("copyfile7",0660);fdnum1 = open("copyfile7",O_RDWR);while((n=read(fd,buf,sizeof(buf)))>0){//puts(buf);write(1,buf,n);}close(fd);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?