setjmp
define a run-time label
Synopsis
#include <setjmp.h>
int setjmp(jmp_buf env);
Description
The
function saves the calling environment in the
setjmp
ment. The effect of the call is to declare a run-time label that can be
jumped to via a subsequent call to
When
is called, it immediately returns with a result of zero to indi-
setjmp
cate that the environment has been saved in the
some later point,
will restore the environment from the argument. The execution
longjmp
will then resume at the statement immediately following the correspond-
ing call to
setjmp
second time but this time the function will return a non-zero result.
The effect of calling
has returned in the interim.
setjmp
Error Conditions
The
function does not return an error condition.
setjmp
Example
See code example for
See Also
longjmp
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
longjmp
is called with the same
longjmp
. The effect is as if the call to
will be undefined if the function that called
longjmp
"longjmp" on page
C/C++ Run-Time Library
jmp_buf
.
argument. If, at
jmp_buf
argument,
jmp_buf
has returned for a
setjmp
3-91.
argu-
3-111
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers