News for hackers. Stuff that matters.
Re:Show HN: Bic – a C interpreter and API explorer by agumonkey on Thursday September 12, 2019 @10:12AM (#20951623)
I love that you have to #include how to exit :)
Re:Show HN: Bic – a C interpreter and API explorer by huhtenberg on Thursday September 12, 2019 @04:26PM (#20956062)
Technically, you should be able to just call exit(1) because of the C's support for "implicit function declarations".

With no prior exit() declaration, the C compiler would assume that "exit" is "int exit()", spit out the code to push whatever arguments are passed to it down the stack and then just call the damn thing. So, magically, it will all just work. Requires an older compiler though, C89 the latest.

Re:Show HN: Bic – a C interpreter and API explorer by jart on Thursday September 12, 2019 @07:00PM (#20957387)
Modern GCC and Clang still support implicit functions. They just complain about it by default. (Mostly for reasons that shouldn't be entirely relevant to modern x86.)
Re:Show HN: Bic – a C interpreter and API explorer by airstrike on Thursday September 12, 2019 @11:33AM (#20952631)
And people think exiting vim is hard!

I suppose you could always quit abruptly, though...