| www.delorie.com/djgpp/doc/libc-2.01/libc_296.html | search |
#include <stdio.h> int fseek(FILE *file, long offset, int mode);
This function moves the file pointer for file according to mode:
SEEK_SET
SEEK_CUR
SEEK_END
Warning! The ANSI standard only allows values of zero for
offset when whence is not SEEK_SET and the file has
been opened as a text file. Although this restriction is not enforced,
beware that there is not a one-to-one correspondence between file
characters and text characters under MS-DOS, so some fseek
operations may not do exactly what you expect.
Zero if successful, nonzero if not.
fseek(stdin, 12, SEEK_CUR); /* skip 12 bytes */
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |