From: Earl K. <eh...@go...> - 2005-03-10 09:00:48
|
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 |