mirror of
https://github.com/libretro/cpp-cheat.git
synced 2025-04-08 14:02:03 +00:00
22 lines
332 B
C
22 lines
332 B
C
/*
|
|
# exit
|
|
|
|
Exit program at any point, including outside of the main function.
|
|
|
|
Gets return value as an argument.
|
|
|
|
On Linux, implemented with the sys_exit system call.
|
|
*/
|
|
|
|
#include "common.h"
|
|
|
|
void exit_func() {
|
|
exit(EXIT_SUCCESS);
|
|
}
|
|
|
|
int main() {
|
|
exit_func();
|
|
/* Never gets run */
|
|
return EXIT_FAILURE;
|
|
}
|