Re:What happens before main() is executed in C and why is it...
by drb91 on Friday May 04, 2018 @03:10PM
(#16997340)
> Depending on the architecture, there tends to also be well-defined hooks for functions to run pre and post-main which is another consistent model for initialization/shutdown.
Is atexit the post-main hook to which you were referring, or is that just the posix hook into a larger class of post-main hooks?
Is atexit the post-main hook to which you were referring, or is that just the posix hook into a larger class of post-main hooks?