Hi, at first, i must thank Raju. K.V. for his answer.
The reason why I read the setjmp.h file is that I want to write a program which will do the following:
At one checkpoint, the program copies the stack of the process to a file. Then at the next checkpoint, the program will decide whether restore the stack from the former file or not according to some conditions.
At first I think setjmp/longjmp can do the job, but after some work, I find that setjmp/longjmp can only restore the stack context, but not content of the stack. Then how can I copy and restore the stack?
 
Thanks in advance.
 
Fred
 
 

Reply via email to