Hacker News new | past | comments | ask | show | jobs | submit login

I don't get it. Why not just remove the exit() and have the function return to where it was called, as standard?



Because, presumably, the program wasn't written as one big main() function, and at least one of the exit()s wasn't in main() — hence the use of longjmp() to jump out of all the layers of function calls back to the caller of the `library'.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: