What are some "good" ways to use longjmp/setjmp for C error handling? -


I have to use C for a project and for the error I longjmp / setjmp I'm thinking of using it as a defect in my thinking that it would be very easy to handle the error in a central location compared to the replacement code. I would appreciate it, but there are some clues on how to do this.

If there is such an error, then I am particularly concerned with cleaning the resource.

In addition, how do I handle errors that use multi-threaded programs?

Even better, is there some cabinet which is already present for error / exception handling?

Take a look at this example / tutorial:

< / Html>

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -