title: Getting the exit status from inside an function registered with atexit()
body: <p>Inside my <strong>atexit()</strong> registered function I would like to get the exit status (either the argument to <strong>exit(3)</strong> or what main() returned with).</p>
  
  <p>Is there any portable way of doing this? Is there any GNU libc specific way of doing it such as a global holding that value I can reference?</p>