testbdp.c
来自「understanding unix/linux programming sou」· C语言 代码 · 共 15 行
C
15 行
/* * testbpd.c - test bidirectional pipes */main(){ int p[2]; if ( pipe(p) == -1 ) exit(1); if ( write(p[0], "hello", 5) == -1 ) perror("write into pipe[0] failed"); else printf("write into pipe[0] worked\n");}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?