fread.3s

来自「unix v7是最后一个广泛发布的研究型UNIX版本」· 3S 代码 · 共 52 行

3S
52
字号
.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 + =
减小字号Ctrl + -
显示快捷键?