43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
** Return the number of errors. No error messages are generated.
*/
static int getStat(const char *zFilename){
if( zFilename==0 ){
if( fileStatValid==0 ) return 1;
}else{
if( stat(zFilename, &fileStat)!=0 ) return 1;
}
return 0;
}
/*
** Return the size of a file in bytes. Return -1 if the file does not
|
>
|
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
** Return the number of errors. No error messages are generated.
*/
static int getStat(const char *zFilename){
if( zFilename==0 ){
if( fileStatValid==0 ) return 1;
}else{
if( stat(zFilename, &fileStat)!=0 ) return 1;
fileStatValid = 1;
}
return 0;
}
/*
** Return the size of a file in bytes. Return -1 if the file does not
|