4 ms·
I don't get it. Why not just remove the exit() and have the function return to where it was called, as standard?
by tome 17y ago
I don't get it. Why not just remove the exit() and have the function return to where it was called, as standard?
- parenthesis 17y agoBecause, 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'.