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

📄 fseek.3

📁 操作系统设计与实现源码
💻 3
字号:
.\"	@(#)fseek.3s	6.3 (Berkeley) 2/24/86.\".TH FSEEK 3  "February 24, 1986".AT 3.SH NAMEfseek, ftell, rewind \- reposition a stream.SH SYNOPSIS.nf.ft B#include <stdio.h>int fseek(FILE *\fIstream\fP, long \fIoffset\fP, int \fIptrname\fP)long ftell(FILE *\fIstream\fP)void rewind(FILE *\fIstream\fP).ft R.fi.SH DESCRIPTION.B Fseeksets the position of the next input or outputoperation on the.IR stream .The new position is at the signed distance.I offsetbytesfrom the beginning, the current position, or the end of the file,according as .I ptrnamehas the value 0, 1, or 2..PP.B Fseekundoes any effects of.BR  ungetc (3)..PP.B Ftellreturns the current value of the offset relative to the beginningof the file associated with the named.IR stream .It is measured in bytes on UNIX;on some other systems it is a magic cookie,and the only foolproof way to obtain an .I offsetfor.BR fseek ..PP.BR Rewind "(\fIstream\fR)"is equivalent to.BR fseek "(\fIstream\fR, 0L, 0).".SH "SEE ALSO".BR lseek (2),.BR fopen (3)..SH DIAGNOSTICS.B Fseekreturns \-1 for improper seeks, otherwise zero.

⌨️ 快捷键说明

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