tedu wrote:[color=blue]
> Gordon Burditt wrote:
>[color=green][color=darkred]
>>>I recently ran into a problem where a data file downloaded[/color]
>>[color=darkred]
>>>from another site contained more than 4Gb of data and so[/color]
>>[color=darkred]
>>>the index file to items within that data went from unsigned
>>>4 byte integers to unsigned 8 byte integers. Naturally this
>>>broke my code which uses fseek(), and can only offset by
>>>longs, which on the target OS is a 4 byte integer.[/color][/color]
>
> fseeko() is part of posix, so it should be available on most platforms
> (but outside strict C).
>[/color]
Thanks, I guess allowing posix extensions isn't too much of a stretch.
Still...
Can any of the standards folks explain why ANSI C does not
have fseeko (or equivalent) so that we can write
standard compliant ANSI C code that can randomly access the largest
files supported on a given OS?
I can understand the historical basis for fseek() using only
longs but not, at this late date, why something like fseeko is
not part of the current C standard.
Regards,
David Mathog
mathog@caltech.edu