📄 setjmp.3
字号:
.TH SETJMP 3.SH NAMEsetjmp, longjmp \- non-local goto.SH SYNOPSIS.B #include <setjmp.h>.PP.B setjmp(env).br.B jmp_buf env;.PP.B longjmp(env, val).br.B jmp_buf env;.SH DESCRIPTIONThese routines are useful for dealing with errors and interrupts encountered ina low-level subroutine of a program..PP.I Setjmp saves its stack environment in.I envfor later use by.I longjmp.It returns value 0..PP.I Longjmprestores the environment saved by the last call of.IR setjmp .It then returns in such a way that executioncontinues as if the call of .I setjmphad just returned the value.I valto the function that invoked.I setjmp,which must not itself have returned in the interim.All accessible data have values as of the time.I longjmpwas called..SH "SEE ALSO"signal(2)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -