Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tome
on July 31, 2009
|
parent
|
context
|
favorite
| on:
Confess HN: Share your Immoral Hacks, Codes or Twe...
I don't get it. Why not just remove the exit() and have the function return to where it was called, as standard?
parenthesis
on July 31, 2009
[–]
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: