Syntax | #include <stdio.h> long tell(int fildes); | |||||||||||
Description |
fildes is the file descriptor of the file for which the current value of the file-position indicator is to be determined. | |||||||||||
Return val. | current value of the file position indicator | |||||||||||
i.e. the number of bytes that offsets the file position indicator from the beginning of the file, for binary files, if successful. | ||||||||||||
absolute position of the file position indicator | ||||||||||||
for text files, if successful. | ||||||||||||
-1 | if an error occurs; | |||||||||||
Notes | The calls Since information on the file position is stored in a field that is 4 bytes long, the following restrictions apply to the size of SAM and ISAM files when processing them with SAM file
ISAM file
| |||||||||||
See also |
|