Re: ftell, fgetpos, etc.
On Sat, Dec 22, 2007 at 01:16:48AM -0500, Scott Gifford wrote:
> Hendrik Boom <hendrik@topoi.pooq.com> writes:
> >
> > Is there something else available? Is there another way to use the tools
> > I have already mentioned? Is there a clean way to move to 64-bit
> > relatively system-independent disk addresses? Is there a standard way?
>
> The very low-level function you are looking for is lseek or lseek64.
> That won't play well with the stdio library, unfortunately, but you
> may find fseeko() and ftello() will work. They use a file position
> that is of type "off_t", which is usually be 64-bit on newer Unixes
> (or at least can be with the right compilation options). See:
>
> http://www.unix.org/version2/whatsnew/lfs20mar.html
>
> and the appropriate manpages, and I think that will set you on the
> right track.
Thanks. That looks like the information I'm looking for.
-- hendrik
Reply to: