|
From: Luke D. <cod...@ho...> - 2005-03-10 14:49:42
|
printf documentation: http://msdn.microsoft.com/library/en-us/vccore98/HTML/_crt_printf.2c_.wprintf.asp can be found by a Google search: printf site:msdn.microsoft.com Luke ----- Original Message ----- From: "Earl Kinmonth" <eh...@go...> To: <min...@li...> Sent: Thursday, March 10, 2005 5:00 PM Subject: Re: [Mingw-users] getting the size of large files under ntfs > At 09:35 05/03/10 +0100, you wrote: >>I'm on Linux right now and therefor can't test it but I think >>your format string is wrong. >> >> > if(_stati64(argv[ix],&sx)) { >> > printf("%s\n","failed"); >> > } >> > else { >> > printf("%10lu ",sx.st_size); >> >> printf("%I64u ",sx.st_size); >>(on Linux you'd probably use >> printf("%llu ",sx.st_size); >>) >> >> > printf("%s",ctime(&sx.st_mtime)); >> > } >> > } > > Many thanks for the advice. The %I64u format string produced the correct > output. Doubtless I've overlooked something, but it is far from obvious > to > me where I should go for documentation of system and library functions for > MINGW/MSYS, in particular documentation of differences between UNIX/LINUX > system and library functions and those implemented in MINGW/MSYS. > > EHK |