Există vreo diferență între
int on_exit(void (*function)(int , void *), void *arg);
și
int atexit(void (*function)(void));
altul decât faptul că funcția utilizată de on_exit obține statutul de ieșire?
Adică, dacă nu mă interesează starea de ieșire, există vreun motiv să folosiți unul sau altul?
Edit: Many of the answers warned against on_exit
because it's non-stșiard. If I'm developing an app that is for internal corporate use și guaranteed to run on specific configurations, should I worry about this?