📄 pipe01.c
字号:
/************
// name : pipe01.c
// author : pyy
// date : 2007-11-23
***************/
#include<unistd.h>
#include<stdio.h>
#include<stdlib.h>
int main()
{
int fd[2];
if ( (pipe(fd))<0)
{
perror("pipe");
exit(1);
}
printf(" fd[0] read flag of file %d\n",fd[0]);
printf(" fd[1] write flag of file %d\n",fd[1]);
close(fd[0]);
close(fd[1]);
exit(0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -