excellent setjmp/longjmp tutorials [closed]

点点圈 提交于 2019-11-30 09:37:27

It's not really a tutorial as such, but the libpng documentation describes how the library uses setjmp/longjmp to do error handling.

Eli Bendersky

The book "C interfaces and implementation" explains the concept well and implements a usable "exception" simulation in C using these constructs. The code for it (chapter 4) is freely available online here.

Edit: also see this SO thread

Then you should read Advanced Programming in the UNIX(R) Environment (2nd Edition) Here's the sample you're looking for http://my.safaribooksonline.com/0201433079/ch10lev1sec15 (just a preview)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!