p5.1.c

来自「linux编程源代码,其中是由大量的实例」· C语言 代码 · 共 19 行

C
19
字号
#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>int main(void){	int fd1;	if((fd1=open("test1",O_CREAT | O_RDWR,0777))==-1){	    perror("Cannot create the test2 file");	    return 1;	}	close(fd1);	return 0;}

⌨️ 快捷键说明

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