COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

The coblongjmp() function returns control to the HP C function that called cobsetjmp(). The
HP C function that called cobsetjmp() must still be active.
The coblongjmp() function cannot be called directly from an HP COBOL program. Applications
must call coblongjmp() from an HP C function.
NOTES
All restrictions on the use of longjmp() apply to coblongjmp() also.
EXAMPLES
The following example illustrates the use of coblongjmp():
#include <cobsetjmp.h>
extern struct cobjmp_buf buf;
void c_prog_2(void)
{
...........
/* can call C or COBOL programs */
...........
coblongjmp(&buf); /* transfers control back to c_prog_1 */
}
RELATED INFORMATION
cobsetjmp( ), longjmp(3), setjmp(3)
NOTE: The reference pages for longjmp(3) and setjmp(3) are located in the Open System Services
Library Calls Reference Manual.
654 Libraries and Utility Routines