1FSEEKO(3)                  Linux Programmer's Manual                 FSEEKO(3)
2
3
4

NAME

6       fseeko, ftello - seek to or report file position
7

SYNOPSIS

9       #include <stdio.h>
10
11       int fseeko(FILE *stream, off_t offset, int whence);
12
13       off_t ftello(FILE *stream);
14

DESCRIPTION

16       The  fseeko()  and  ftello()  functions  are  identical to fseek(3) and
17       ftell(3) (see fseek(3)), respectively, except that the offset  argument
18       of  fseeko()  and the return value of ftello() is of type off_t instead
19       of long.
20
21       On many architectures both off_t and long are 32-bit types, but  compiā€
22       lation with
23
24              #define _FILE_OFFSET_BITS 64
25
26       will turn off_t into a 64-bit type.
27

RETURN VALUE

29       On  successful  completion,  fseeko() returns 0, while ftello() returns
30       the current offset.  Otherwise, -1 is returned  and  errno  is  set  to
31       indicate the error.
32

ERRORS

34       See the ERRORS in fseek(3).
35

CONFORMING TO

37       SUSv2, POSIX.1-2001.
38

NOTES

40       These  functions  are  found  on  System  V-like systems.  They are not
41       present in libc4, libc5, glibc 2.0 but are available since glibc 2.1.
42

SEE ALSO

44       fseek(3)
45

COLOPHON

47       This page is part of release 3.53 of the Linux  man-pages  project.   A
48       description  of  the project, and information about reporting bugs, can
49       be found at http://www.kernel.org/doc/man-pages/.
50
51
52
53                                  2001-11-05                         FSEEKO(3)
Impressum