Query: fseek
OS: minix
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
FSEEK(3) Library Functions Manual FSEEK(3)NAMEfseek, ftell, rewind - reposition a streamSYNOPSIS#include <stdio.h> int fseek(FILE *stream, long offset, int ptrname) long ftell(FILE *stream) void rewind(FILE *stream)DESCRIPTIONFseek sets the position of the next input or output operation on the stream. The new position is at the signed distance offset bytes from the beginning, the current position, or the end of the file, according as ptrname has the value 0, 1, or 2. Fseek undoes any effects of ungetc(3). Ftell returns the current value of the offset relative to the beginning of the file associated with the named 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 offset for fseek. Rewind(stream) is equivalent to fseek(stream, 0L, 0).SEE ALSOlseek(2), fopen(3).DIAGNOSTICSFseek returns -1 for improper seeks, otherwise zero. 7th Edition February 24, 1986 FSEEK(3)
Related Man Pages |
---|
ftell(3) - redhat |
fgetpos(3) - debian |
fsetpos(3) - debian |
fgetpos(3) - centos |
fsetpos(3) - centos |
Similar Topics in the Unix Linux Community |
---|
error when using fseek() function |
q on fseek() & ftell() + tga files |
help with fseek |
help with reading a binary file and fseek |