Back to index

tetex-bin  3.0
Functions
file-p.c File Reference
#include <kpathsea/config.h>
#include <kpathsea/xstat.h>

Go to the source code of this file.

Functions

boolean same_file_p P2C (const_string, filename1, const_string, filename2)

Function Documentation

boolean same_file_p P2C ( const_string  ,
filename1  ,
const_string  ,
filename2   
)

Definition at line 28 of file file-p.c.

{
    struct stat sb1, sb2;
    /* These are put in variables only so the results can be inspected
       under gdb.  */
    int r1 = stat (filename1, &sb1);
    int r2 = stat (filename2, &sb2);

    return r1 == 0 && r2 == 0 ? SAME_FILE_P (sb1, sb2) : false;
}