📄 xfopena.c
字号:
/* $Revision: 1.1 $***/#include <stdio.h>#include <fcntl.h>/*** Open a file in append mode. Since not all fopen's set the O_APPEND** flag, we do it by hand.*/FILE *xfopena(p) char *p;{ int fd; /* We can't trust stdio to really use O_APPEND, so open, then fdopen. */ fd = open(p, O_WRONLY | O_APPEND | O_CREAT, 0666); return fd >= 0 ? fdopen(fd, "a") : NULL;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -