setjmp man page on UNIXv7

Man page or keyword search:  
man Server   300 pages
apropos Keyword Search (all sections)
Output format
UNIXv7 logo
[printable version]

SETJMP(3)							     SETJMP(3)

NAME
       setjmp, longjmp - non-local goto

SYNOPSIS
       #include <setjmp.h>

       setjmp(env)
       jmp_buf env;

       longjmp(env, val)
       jmp_buf env;

DESCRIPTION
       These  routines	are  useful  for  dealing  with	 errors and interrupts
       encountered in a low-level subroutine of a program.

       Setjmp saves its stack environment in env for later use by longjmp.  It
       returns value 0.

       Longjmp	restores the environment saved by the last call of setjmp.  It
       then returns in such a way that execution continues as if the  call  of
       setjmp  had  just  returned  the value val to the function that invoked
       setjmp, which must not itself have returned in the interim.  All acces‐
       sible data have values as of the time longjmp was called.

SEE ALSO
       signal(2)

								     SETJMP(3)
[top]

List of man pages available for UNIXv7

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net