EXIT_CB
Global callback for an exit. Used when main is not possible, such as in iOS and Android systems.
It is called every time the last main loop is ended. In regular systems, it is called right after the actual event loop is ended, every time the main loop level returns to 0. In Android, it is called when the last activity is destroyed. In iOS, it is called only if the system terminates the app while it is still running; suspended apps are usually terminated without notification, so it is normally not called there.
Callback
void function(void);
Notes
It can only be set using IupSetFunction(name, func).