GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
FILEPOS(3) Schily´s LIBRARY FUNCTIONS FILEPOS(3)

filepos() - returns the logical position in a file

off_t filepos(f)
FILE *f;

filepos() returns the current file position as an offset in bytes from the beginning of the file. This is the position of the next byte to be read or written.

Returns the current offset into file f.

The numbering of bytes in a file starts at 0. 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.

2020/02/09 Joerg Schilling

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.