Forked from
redox-os / relibc
1548 commits behind the upstream repository.
-
Nagy Tibor authoredNagy Tibor authored
setjmp.c 228 B
#include <stdio.h>
#include <setjmp.h>
#include "test_helpers.h"
int main(void) {
jmp_buf buf;
if (setjmp(buf)) {
puts("hi from jump");
} else {
puts("jumping...");
longjmp(buf, 0);
}
}