In C, when the main process ends -- how does it know to call any functions registered with atexit()?
I understand how atexit() works, but I don't understand the communication between "Main process ending" and "call any functions registered with atexit()" I'm being a bit redundant.
Thanks!