Re: FREAD fails on files >4GB



On 2008-07-30 23:30:34 +0100, Richie Kernagan <honey@xxxxxxxxxx> said:

Howdy

Problem with the fread() call on MS Visual Studio 2005 running under Win 64.

The parameters to fread size and count are both size_t ie 64 bits. Even so the call fails when the size arg is greater than 4GB (ie exceeds 32 bit unsigned value).

Any suggestions.

Thanks in advance.

I never use VS 2005 so I don't know if it is true or not but does it have an fread64() function in its library at all? Some systems do, I just do not know if the Microsoft implementation is one.

--
"I disapprove of what you say, but I'll defend to the death your right to say it." - Voltaire

.



Relevant Pages

  • Re: FREAD fails on files >4GB
    ... Problem with the freadcall on MS Visual Studio 2005 running under ... The parameters to fread size and count are both size_t ie 64 bits. ... Even so the call fails when the size arg is greater than 4GB (ie ...
    (comp.lang.c)
  • Re: FREAD fails on files >4GB
    ... Problem with the fread() call on MS Visual Studio 2005 running under Win 64. ... so the call fails when the size arg is greater than 4GB (ie exceeds 32 ...
    (comp.lang.c)