Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #53908

Re: fseek(), offset and ftell()

From Nobody <nobody@nowhere.invalid>
Newsgroups comp.lang.c
Subject Re: fseek(), offset and ftell()
Date 2014-12-05 00:24 +0000
Organization A noiseless patient Spider
Message-ID <pan.2014.12.05.00.24.03.504000@nowhere.invalid> (permalink)
References <54801e7e$0$297$14726298@news.sunsite.dk> <lna933pcqk.fsf@nuthaus.mib.org> <m5qkfg$ck8$1@speranza.aioe.org>

Show all headers | View raw


On Thu, 04 Dec 2014 21:42:08 +0000, glen herrmannsfeldt wrote:

> Presumably those who compile versions of Adobe Reader know the
> fseek() properties of the system in use.

Examining the dependencies of AcroRd32.exe indicates that it doesn't
use MSVCRT (the library providing the standard C library functions),
but instead uses the Windows I/O functions (SetFilePointer() is the
equivalent of fseek()).

Which isn't particularly surprising. C's stdio functions are something of
a lowest common denominator. The OS' native I/O capabilities will always
offer additional functionality. Probably the most common issue with
stdio is that fseek/ftell are problematic for files whose size cannot fit
into a signed "long" (which is only 32 bits even on "64-bit" versions of
Windows).

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

fseek(), offset and ftell() arnuld <sunrise@invalid.address> - 2014-12-04 08:42 +0000
  Re: fseek(), offset and ftell() Robert Wessel <robertwessel2@yahoo.com> - 2014-12-04 03:28 -0600
  Re: fseek(), offset and ftell() James Kuyper <jameskuyper@verizon.net> - 2014-12-04 11:25 -0500
    Re: fseek(), offset and ftell() glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2014-12-04 16:49 +0000
  Re: fseek(), offset and ftell() Keith Thompson <kst-u@mib.org> - 2014-12-04 09:05 -0800
    Re: fseek(), offset and ftell() "Bill Cunningham" <nospam@nspam.invalid> - 2014-12-04 14:13 -0500
      Re: fseek(), offset and ftell() "Bill Cunningham" <nospam@nspam.invalid> - 2014-12-04 16:01 -0500
    Re: fseek(), offset and ftell() glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2014-12-04 21:42 +0000
      Re: fseek(), offset and ftell() Nobody <nobody@nowhere.invalid> - 2014-12-05 00:24 +0000
        Re: fseek(), offset and ftell() "Bill Cunningham" <nospam@nspam.invalid> - 2014-12-04 21:29 -0500

csiph-web