In answer to this question, some people have said to use _Exit() and others have said to use _exit(). Could someone explain the difference (if any) between the two, and the origins of both?
Right from the man page here:
The function _Exit() is equivalent to _exit().
Although in C++11, it is standardized as either std::_Exit or std::quick_exit. According to Mike Seymour here.
_Exit(2)
is from C99. _exit(2)
is from POSIX. At least, according to the manpage I have installed here.
They are entirely equivalent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With