int on_exit(procp, arg) void (*procp)(); caddr_t arg;
on_exit() names a routine to be called after a program calls exit.3 or returns normally, and before its process terminates. The routine named is called as
(*procp)(status, arg);
on_exit() returns zero normally, or nonzero if the procedure name could not be stored.
This call is specific to the SunOS operating system and should not be used if portability is a concern.
Standard I/O exit processing is always done last.
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97