Problem is – I have to implement my own exit(status) with setjmp and longjmp. Maybe someone could give some pointers?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only solution I think of right now, is to call
setjmpearly inmain, and then create aMyExitfunction which does alongjmpto thesetjmpinmainand does areturnwith some value (provided from thelongjmpcall).