> 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?