Re: How to deal with big-size files??



On Dec 31 2007, 11:59 pm, "هنداوى" <3D.v.Wo...@xxxxxxxxx> wrote:
What can i do to open , write and seek in file with size 2 GB or more

I know that you r limited with int type size which is 32-bit but how
programs like gzip , zip read and write from files with big size like
2-GB

 how can i break this limit in C or even C++

In Win32, you can use LARGE_INTEGER structure, and the APIs support 64-
bit integers.
Many compilers have built-in support for 64-bit integers, such as
__int64 in Microsoft C++ compiler.
However, it seems that standard C functions do not support 64-bit
integers.
.



Relevant Pages

  • Re: gzip TOCTOU file-permissions vulnerability
    ... >> On decompressing gzip copies the permissions from the compressed ... only supported OS which doesn't support the modes argument seems to be ...
    (Bugtraq)
  • Re: base64 encoded webpages
    ... Why are you using base64? ... There's no requirement or recommendation that browsers support base64, ... whereas support to gzip can be regarded as a de facto standard (I didn't find ...
    (comp.infosystems.www.misc)
  • Re: Question about MTIME field in gzip
    ... Thanks for the clarification. ... I'm surprised to see that gzip isn't ... format could be modified to support post-2038 dates? ...
    (comp.compression)
  • compile error on alpha - binutils problem?
    ... {standard input}:246: Error: macro requires $at register while noat in effect ... # PCCARD support ...
    (Linux-Kernel)
  • Re: New Ethiopian Find - Oldest Biped At 3.8-4 mya
    ... >> This is not an example of a double standard. ... > criticise arguments you don't support for not ... *elimination of human hair as it relates to swimming. ... primarily--neither set out to address hair reduction) required a rather ...
    (sci.anthropology.paleo)