⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fread.3s

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 3S
字号:
.\" SCCSID: @(#)fread.3s	8.1	9/11/90.TH fread 3s.SH Namefread, fwrite \- buffered binary input/output.SH Syntax.B #include <stdio.h>.nf.B size_t fread\^(\fIptr, size, nitems, stream\fP).B void *\fIptr\fP;.B size_t \fIsize\fP, \fInitems\fP;.B FILE *\fIstream\fP;.B size_t fwrite\^(\fIptr, size, nitems, stream\fP).B void *\fIptr\fP; .B size_t \fIsize, nitems\fP; .B FILE *\fIstream\fP;.fi.SH Description.NXR "fread subroutine".NXR "fwrite subroutine".NXR "stream" "reading".NXR "stream" "appending"The.PN freadfunction reads into a block beginning at.IR ptr ,.I nitemsof data of the size \fIsize\fP (usually sizeof .IR *ptr )from the named input.IR stream .It returns the number of items actually read..PPIf.I streamis.B stdinand the standard output is line buffered, then any partial output linewill be flushed before any call to.MS read 2to satisfy the.PN fread ..PPThe.PN fwritefunction appends, at most,.I nitemsof data of the size \fIsize\fP (usually sizeof.IR *ptr )beginning at.I ptrto the named output.IR stream .It returns the number of items actually written..SH Return ValuesThe.PN freadand.PN fwritefunctions return0upon end of file or error..SH See Alsoread(2), write(2), fopen(3s), getc(3s), gets(3s),printf(3s), putc(3s), puts(3s), scanf(3s)

⌨️ 快捷键说明

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