1 .\" Copyright 2001 Andries Brouwer <aeb@cwi.nl>.
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .TH FSEEKO 3 2021-03-22 GNU "Linux Programmer's Manual"
7 fseeko, ftello \- seek to or report file position
10 .RI ( libc ", " \-lc )
15 .BI "int fseeko(FILE *" stream ", off_t " offset ", int " whence );
16 .BI "off_t ftello(FILE *" stream );
20 Feature Test Macro Requirements for glibc (see
21 .BR feature_test_macros (7)):
27 _FILE_OFFSET_BITS == 64 || _POSIX_C_SOURCE >= 200112L
34 functions are identical to
40 respectively, except that the
44 and the return value of
51 On some architectures, both
55 are 32-bit types, but defining
57 with the value 64 (before including
64 On successful completion,
68 returns the current offset.
69 Otherwise, \-1 is returned and
71 is set to indicate the error.
76 These functions are available under glibc since version 2.1.
78 For an explanation of the terms used in this section, see
86 Interface Attribute Value
90 T} Thread safety MT-Safe
96 POSIX.1-2001, POSIX.1-2008, SUSv2.
98 The declarations of these functions can also be obtained by defining