@vaporeon_ the unix programming environment actually uses them in some example code, in a book meant fur beginners to unix, not to mention purrogramming lol
@aescling I really liked that book, it made me better at shell programming and at UNIX in general
@vaporeon_ yeah i love that book
@aescling Yep! They have the example that a text editor, if interrupted while doing a long printout (who of us hasn't accidentally
cat
-ed a huge file and then regretted it...), shouldn't exit, but should jump back to the main loop (without losing the work). Page 227, this is the code:It makes sense to me! How would you solve this without setjmp() / longjmp()?