Search results
The ftell() function shall obtain the current value of the file- position indicator for the stream pointed to by stream. The ftell () function shall not change the setting of errno if successful.
3 sie 2010 · Is there a way to do what ftell() does (return the current position in the file) on a raw file descriptor instead of a FILE*? I think there ought to be, since you can seek on a raw file descriptor using lseek().
Upon successful completion, ftell() and ftello() shall return the current value of the file-position indicator for the stream measured in bytes from the beginning of the file. Otherwise, ftell () and ftello () shall return -1, and set errno to indicate the error.
The ftell() function obtains the current value of the file position indicator for the stream pointed to by stream. The rewind() function sets the file position indicator for the stream pointed to by stream to the beginning of the file. It is equivalent to: (void) fseek(stream, 0L, SEEK_SET)
The ftell() function obtains the current value of the file position indicator for the stream pointed to by stream. The rewind() function sets the file position indicator for the stream pointed to by stream to the beginning of the file.
The ftell() function obtains the current value of the file position indicator for the stream pointed to by stream. The rewind () function sets the file position indicator for the stream pointed to by stream to the beginning of the file.
The ftell() function obtains the current value of the file position indicator for the stream pointed to by stream. The rewind() function sets the file position indicator for the stream pointed to by stream to the beginning of the file.