Description | These functions obtain the current value of the file position indicator for the streampointed to by stream. The There is no difference in functionality between
| |
Return val. | current value of the file position indicator | |
for the stream, i.e. the number of bytes that offsets the file position indicator from the beginning of the file, if successful. | ||
| -1 | if an error occurs; |
| BS2000 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, if successful. | |
| absolute position of the file position indicator | |
| for text files, if successful. | |
| -1 | if an error occurs; |
Errors |
| |
|
| The file descriptor underlying stream is not open for writing or the stream's buffer needed to be flushed and the file is not open. |
|
| The file descriptor underlying stream is associated with a pipe or FIFO. |
|
| For ftell(): the resulting file offset is a value that cannot be represented correctly in an object of type |
|
| For ftello(): the current file offset cannot be represented correctly in an object of type |
Notes | The program environment determines whether BS2000
| |
See also |
|