Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > error handlling...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 44180 of 47926
Post > Topic >>

error handlling in C

by broli <Broli00@[EMAIL PROTECTED] > Mar 28, 2008 at 08:01 AM

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;
     }

    ..............................................

}
 




 2 Posts in Topic:
error handlling in C
broli <Broli00@[EMAIL   2008-03-28 08:01:45 
Re: error handlling in C
Ron Natalie <ron@[EMAI  2008-03-28 11:12:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 6 18:18:19 CDT 2008.