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

📄 fread.3

📁 操作系统设计与实现源码
💻 3
字号:
.\" Copyright (c) 1980 Regents of the University of California..\" All rights reserved.  The Berkeley software License Agreement.\" specifies the terms and conditions for redistribution..\".\"	@(#)fread.3s	6.1 (Berkeley) 5/15/85.\".TH FREAD 3  "May 15, 1985".UC 4.SH NAMEfread, fwrite \- buffered binary input/output.SH SYNOPSIS.nf.ft B#include <sys/types.h>#include <stdio.h>size_t fread(void *\fIptr\fP, size_t \fIitemsize\fP, size_t \fInitems\fP, FILE *\fIstream\fP)size_t fwrite(void *\fIptr\fP, size_t \fIitemsize\fP, size_t \fInitems\fP, FILE *\fIstream\fP).SH DESCRIPTION.B Freadreads, into a block beginning at.IR ptr ,.I nitemsof data of the type of.I *ptrfrom 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.BR read (2)to satisfy the.BR fread ..PP.B 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".BR read (2),.BR write (2),.BR fopen (3),.BR getc (3),.BR putc (3),.BR gets (3),.BR puts (3),.BR printf (3),.BR scanf (3)..SH DIAGNOSTICS.B Freadand.B fwritereturn0upon end of file or error.

⌨️ 快捷键说明

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