Is it generally a good idea to use perror() function to handle all the
error situations ?
For eg in one of my modules I have used it extensively.
int reader()
{
FILE *zeus_file;
....................
.....................
zeus_file = fopen("sphere.zeus", "r");
if(zeus_file == NULL)
{
perror("File open error");
return -1;
}
..............................................
}