SW500007 Microchip Technology, SW500007 Datasheet - Page 268

PICC-18 PRO

SW500007

Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500007

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015P
778-1002
778-1002
SETJMP
Synopsis
Description
The setjmp() function is used with longjmp() for non-local goto’s. See longjmp() for further infor-
mation.
Example
254
#include <setjmp.h>
int setjmp (jmp_buf buf)
#include <stdio.h>
#include <setjmp.h>
#include <stdlib.h>
jmp_buf jb;
void
inner (void)
{
}
void
main (void)
{
longjmp(jb, 5);
int i;
if(i = setjmp(jb)) {
}
printf("setjmp returned 0 - good\n");
printf("calling inner...\n");
printf("setjmp returned %d\n", i);
exit(0);
Library Functions

Related parts for SW500007