📄 fread.3s
字号:
.TH FREAD 3S .SH NAMEfread, fwrite \- buffered binary input/output.SH SYNOPSIS.B #include <stdio.h>.PP.B fread(ptr, sizeof(*ptr), nitems, stream).br.SM.B FILE.B *stream;.PP.B fwrite(ptr, sizeof(*ptr), nitems, stream).br.SM.B FILE.B *stream;.SH DESCRIPTION.I Freadreads, into a block beginning at.I ptr,.I nitemsof data of the type of.I *ptrfrom the named input.IR stream .It returns the number of items actually read..PP.I Fwriteappends at most.I nitemsof data of the type of.I *ptrbeginning at.I ptrto the named output.IR stream .It returns the number of items actually written..SH "SEE ALSO"read(2), write(2),fopen(3),getc(3), putc(3),gets(3), puts(3),printf(3), scanf(3).SH DIAGNOSTICS.I Freadand.I fwritereturn0upon end of file or error.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -