On Thu, 2010-04-01 at 13:41 +0200, Jose E.Marchesi wrote:

> We cannot access to the internals of the fpos_t type.  It is declared
> as opaque by the libc and its internal structure may change in
> different systems.
> 
> The code in pdf-fsys-disk.c is incorrect, since fpos_t is defined as a
> structure by glibc.  At this point I think that we should use
> ftell/fseek with SEEK_SET instead of the f(set|get)pos functions.

But it's said in manual
        On some non-UNIX systems an fpos_t object may be a complex     object
and these routines may be the only way to portably repo‐
       sition a text stream.
Which means ftell/fseek does not always work.

And one simple question:
Why set file position is needed here? 

Br,
Yang



Reply via email to