setjmp
Longjmp out of signal handler?
From the question: Is it good programming practice to use setjmp and longjmp in C? Two of the comments left said:[详细]
2023-04-02 23:44 分类:问答Use of setjmp and longjmp in C when linking to C++ libraries
I would like to use setjmp and longjmp in a C program that links to a library that is implemented in C++ (but has a C API).[详细]
2023-04-01 02:40 分类:问答Why isn't setjmp saving the stack?
Why isn\'t setjmp saving the stack? Consider the following code: #include <iostream> jmp_buf Buf; jmp_buf Buf2;[详细]
2023-03-31 03:52 分类:问答setjmp and longjmp - understanding with examples
I know the definition of setjmp and longjmp. setjmp stores the environment in stack context and the other one restores.[详细]
2023-03-25 10:25 分类:问答C setjmp.h and ucontext.h, which is better?
Hi I\'m need to jump from a place to another... But I would like to know which is better to use, setjmp or ucontext, things like:[详细]
2023-02-22 09:35 分类:问答Segfaulting when using setjmp longjmp
I have this school project and it is about using setjmp and longjmp to do imprecise calculations. The program starts a timer that will signal a signal handler.[详细]
2023-02-21 00:50 分类:问答longjmp and RAII
So I have a library (not written by me) which unfortunately uses abort() to deal with certain errors. At the application level, these errors are recoverable so I would like to handle them instead of t[详细]
2023-02-18 05:39 分类:问答question with longjmp
I want to use longjmp to simulate goto instruction.I have an array DS containing elements of st开发者_高级运维ruct types (int , float, bool ,char). I want to jump to the place labled \"lablex\" where[详细]
2023-01-04 01:18 分类:问答In C: sending func pointers, calling the func with it, playing with EIP, jmp_buf and longjmp
I need to make sure i understand some basic stuff first: how do i pass function A as a parameter to function B?[详细]
2022-12-30 11:30 分类:问答Can I undo or remove an atexit command?
If I place atexit( fn ); on the exit stack, it will get executed when the program exits: returns from main() or via exit().[详细]
2022-12-21 08:05 分类:问答