atexit — User Commands
NAME
atexit − Register procedure to be invoked before process exits
SYNOPSIS
#include <stdlib.h>
int
atexit(func)
ARGUMENTS
void ∗func() (in) Procedure to call just before process exits.
DESCRIPTION
Atexit may be used to register the procedure func, such that func will be invoked by the exit procedure before the process exits. Func will only be called if the exit procedure is invoked: if the process terminates because of a signal, or if the process bypasses exit by calling _exit, then func will not be invoked. Func takes no arguments and returns no result.
The normal return value from atexit is 0. If the registration fails then a non-zero value is returned.
KEYWORDS
exit, handler, register
Sprite version 1.0 — March 21, 1989