src/xpath/xpath.c
/*
 * Test if file exist using the effective user.
 */
Test if file exist using the effective user.
Test if file exist using the effective user .
int xpath_file_exist(const char * fn)
{
    FILE * fp;
    fp = fopen(fn, "r");
    if (fp == NULL)
    {
        return 0;
    }
    fclose(fp);
    return 1;
}
int xpath_file_exist ( const char * fn ) { FILE * fp ; fp = fopen ( fn , " " ) ; if ( fp == NULL ) { return 0 ; } fclose ( fp ) ; return 1 ; }
Test if file exist using the effective user.
Test if file exist using the effective user .