1. Tech

Your suggestion is on its way!

An email with a link to:

http://linux.about.com/library/cmd/blcmdl3_atexit.htm

was emailed to:

Thanks for sharing About.com with others!

Linux / Unix Command: atexit
Command Library

NAME

atexit - register a function to be called at normal program termination.  

SYNOPSIS

#include <stdlib.h>

int atexit(void (*function)(void));
 

DESCRIPTION

The atexit() function registers the given function to be called at normal program termination, whether via exit(3) or via return from the program's main. Functions so registered are called in the reverse order of their registration; no arguments are passed.  

RETURN VALUE

The atexit() function returns the value 0 if successful; otherwise it returns a nonzero value; errno is not set.  

CONFORMING TO

SVID 3, BSD 4.3, ISO 9899  

SEE ALSO

exit(3), on_exit(3)


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Explore Linux
By Category
    linuxLinuxcomputeTechb0502bb1540001006c84963cb0502bb1540002006c818e0ahttp://linux.about.comod526F6F74132058liveGary Newelllinuxguide3TO004KpzNIP11970-01-0110/od/index.htm0526F6F741approved/od
  1. About.com
  2. Tech
  3. Linux

©2016 About.com. All rights reserved.