What are some “good” ways to use longjmp/setjmp for C error handling?

前端 未结 6 1063
南旧
南旧 2020-12-24 14:09

I have to use C for one project and I am thinking of using longjmp/setjmp for error handling as I think it will be much easier to handle error in one central pl

6条回答
  •  无人及你
    2020-12-24 14:26

    Have a look at this example/tutorial:
    http://www.di.unipi.it/~nids/docs/longjump_try_trow_catch.html

提交回复
热议问题