This function shuts down the library but does not call functions registered with atexit().
void __rt_exit(int code);
Where code is not used by the standard function.
Shuts down the C library by calling __rt_lib_shutdown, and then calls _sys_exit to terminate the application. Re‑implement _sys_exit rather than __rt_exit, see _sys_exit() for more information.
The function does not return.