我有自己的_open()
, _close()
, _write()
, _read()
.
我的代码:
FILE *f = fopen("0:test", "wb"); // calls _open()
fwrite("hello ", 6, 1, f);
fwrite("world\r\n\0", 8, 1, f); // calls _write(3, "hello world\r\n", 13)
fflush(f); // calls _write(3, "\0", 1)
fclose(f); // calls _close(3)
BUFSIZE
是 1024
编译器:arm-none-eabi-gcc
/版本:5.4.1
即使我有标志,为什么还要fwrite()
解释?'\n'
"wb"
是否fopen()
解释文件名"0:test"
?