Re: Help ! how to get a file size larger than 2G?
- From: richard@xxxxxxxxxxxxxxx (Richard Tobin)
- Date: 30 Sep 2007 13:55:19 GMT
In article <fdmtlu$kd$1@xxxxxxxxxxxxxx>, zou <zouwan@xxxxxxxxx> wrote:
but stat::st_size is type of off_t(typedef long),
so how about a file larger than 2G?
I suppose by "stat::st_size" you mean the st_size field of the stat
structure. Note that stat() isn't a standard C function, but a unix
one which has made its way into some other systems.
Some systems have a symbol you can #define to make off_t be a 64-bit
type on a system where it is usually 32 bits. It appears to be
__USE_FILE_OFFSET64 on a Linux system here, but I have no experience
of using it so I recommend you ask in a group more specific to your
system.
-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
.
- References:
- Prev by Date: Re: definition/explanation of an unboxed array in c is ...?
- Next by Date: Re: Warnings in lcc-win
- Previous by thread: Re: Help ! how to get a file size larger than 2G?
- Next by thread: learning c language
- Index(es):
Relevant Pages
|