原帖由 churchmice 于 2009-11-17 12:44 發(fā)表
#include
#include
#include
#include
#include
long long get_file_size( const char *filename )
{
struct stat buf;
if( stat( filename, &buf ) < 0 ) {
return 0;
}
retu ...
stat這樣最恐怖。用的一個庫,居然用了-D_FILE_OFFSET_BITS=64
而我調(diào)用那個庫的程序,沒有用這個 ...
peidright 發(fā)表于 2009-11-17 13:47
歡迎光臨 Chinaunix (http://72891.cn/) | Powered by Discuz! X3.2 |