FILESEEK(3)

πŸ“¦
version 2022.10.16 Β· 2 versions
, in opensuse-leap 16.0

🌸 NAME 🌸

fileseek() β€” sets file position, bestie. That's the whole assignment: moving the file position where you need it. πŸ’…

✨ SYNOPSIS ✨

fileseek(f,offset)
FILE *f;
long offset;

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so fileseek() sets the logical position in the file f to offset. The next read or write operation begins with the byte at the new offset. Literally that's the vibe β€” cursor moved, business handled. ✨

πŸŽ€ RETURNS πŸŽ€

none. No return value, no extra little treat, nothing. Periodt. πŸ’–

πŸ‘‘ NOTES πŸ‘‘

  • File positions begin with 0 for the first byte. Zero-indexed, as she should be. 🌈
  • When writing, it is legal to seek beyond the end of file. Yes bestie, past EOF is allowed when you're writing β€” no cap.

This iconic page is FILESEEK(3) from SchilyΒ΄s LIBRARY FUNCTIONS, brought to you by Joerg Schilling on 2022/09/09. Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from