error handlling in C
- From: broli <Broli00@xxxxxxxxx>
- Date: Fri, 28 Mar 2008 08:02:28 -0700 (PDT)
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;
}
..............................................
}
.
- Follow-Ups:
- Re: error handlling in C
- From: Flash Gordon
- Re: error handlling in C
- From: vippstar
- Re: error handlling in C
- Prev by Date: Re: Implementation-defined behaviour
- Next by Date: Scatologic ,incestuous family
- Previous by thread: Re: bb king, lolita nude, nude children, child super models, loli bbs
- Next by thread: Re: error handlling in C
- Index(es):
Relevant Pages
|