On 08/03/10 06:50, Giuseppe Scrivano wrote:
> if ((pos = fseek (stream, 0, SEEK_CUR)) == 0)

Surely this would be much, much slower if the file seeks slowly,
for example, if it is a tape drive.

It might be helpful to use fstat to find the file's type and size,
and to subtract the current file offset from its size
(for file types where st_size is applicable).

Reply via email to