Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_system_is_file ( const char *  filename  ) 

check if passed filename is a file

Parameters:
filename file name to check
Checks whether the passed in filename is a file and returns this as boolean.

Returns:
boolean flag whether passed filename is a file.

Definition at line 234 of file gphoto2-port-portability.c.

                                             {
        struct stat st;

        if (stat(filename, &st)!=0)
                return 0;
        return (!S_ISDIR(st.st_mode));
}


Generated by  Doxygen 1.6.0   Back to index