William Kendrick once said:
From the man page 
ATEXIT(3) Linux Programmer’s Manual ATEXIT(3)
NAME
atexit - register a function to be called at normal pro-
gram termination.
Ah, great! I think it was a SDL-thingy =).–
-Stephan /
/ tisprut productions [tm]
http://wiktor.dk/~stephan
From the man page 
ATEXIT(3) Linux Programmer’s Manual ATEXIT(3)
NAME
atexit - register a function to be called at normal pro-
gram 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 reg-
istered are called in the reverse order of their registra-
tion; no argument sare passed.
RETURN VALUE
The atexit() function returns the value 0 if successful;
otherwise the value -1 is returned; errno is not set.
CONFORMING TO
SVID 3, BSD 4.3, ISO 9899
SEE ALSO
exit(3), on_exit(3)
GNU 14 September 1997 1
-bill!
Stephan Dragehjerte wrote:
William Kendrick once said:
From the man page 
ATEXIT(3) Linux Programmer’s Manual ATEXIT(3)
NAME
atexit - register a function to be called at normal pro-
gram termination.
Ah, great! I think it was a SDL-thingy =).
Doesn’t anyone ever read K&R anymore?! The thing’s part of the C
Standard for crying out loud!–
| Rafael R. Sevilla @Rafael_R_Sevilla |
| Instrumentation, Robotics, and Control Laboratory |
College of Engineering, University of the Philippines, Diliman |