Query: fseek
OS: ultrix
Section: 3s
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
fseek(3s) fseek(3s) Name fseek, ftell, rewind - reposition a file pointer in a stream Syntax #include <stdio.h> int fseek(stream, offset, ptrname) FILE *stream; long offset; int ptrname; long ftell(stream) FILE *stream; void rewind(stream) FILE *stream; Description The function 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 SEEK_SET, SEEK_CUR, or SEEK_END. The function undoes any effects of The function returns the current value of the offset relative to the beginning of the file associated with the named stream. It is mea- sured in bytes and is the only foolproof way to obtain an offset for The (stream) function is equivalent to (stream , 0L, 0, SEEK_SET), except that no value is returned. Return Values The function returns -1 for improper seeks, otherwise 0. See Also lseek(2), fopen(3s) fseek(3s)
Related Man Pages |
---|
fseek(3) - linux |
fgetpos(3) - redhat |
fsetpos(3) - redhat |
ftell(3) - redhat |
rewind(3) - redhat |
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 |