src/find.c
//checks if the path passed in input is a file.
checks if the path passed in input is a file.
checks if the path passed in input is a file .
int isRegularFile(const char *path){
    struct stat path_stat;
    stat(path, &path_stat);
    return S_ISREG(path_stat.st_mode);
}
int isRegularFile ( const char * path ) { struct stat path_stat ; stat ( path , & path_stat ) ; return S_ISREG ( path_stat . st_mode ) ; }
checks if the path passed in input is a file.
checks if the path passed in input is a file .