by this
Why does fopen("any_path_name",'r') not give NULL as return?
i get to know that in linux directories and files are considered to b
You can use S_ISDIR macro .