FILEPOS(3)
FILEPOS(3) π
πΈ NAME πΈ
filepos() β returns the logical position in a file. This page comes from SchilyΒ΄s LIBRARY FUNCTIONS, and yes bestie, it's lowkey short but it still ate. β¨
β¨ SYNOPSIS β¨
off_t filepos(f)
FILE *f;
π DESCRIPTION π
okay so filepos() returns the current file position as an offset in bytes from the beginning of the file. It's literally the position of the next byte to be read or written β that's the whole vibe check. π
π«Ά RETURNS π«Ά
It returns the current offset into file f. That's it, that's the return value β no plot twist, fr fr. π
π NOTES π
- The numbering of bytes in a file starts at
0β periodt. π - For byte sequential devices, such as a terminal, the value returned will be the number of bytes read or written from the current file, unless a seek call is issued which changes the logical position but does not affect the device. πΈ
- File positions may be set to arbitrary values (via
fileseek()) and are only used by the file system when actual reading or writing occurs. π₯ - Normally, the file position is incremented by the amount of data transferred for each sequential read or write. π
okay bestie, that's the whole page! π Sign-off: Joerg Schilling, dated 2022/09/09, footer says FILEPOS(3) β periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: libschily-devel-doc 2022.10.16-160000.2.2 Β· CDDL-1.0
- Copyright 1985-2020 J. Schilling
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms