glibc/manual/examples/atexit.c

16 lines
158 B
C
Raw Normal View History

1995-02-18 01:27:10 +00:00
#include <stdio.h>
#include <stdlib.h>
void
bye (void)
{
puts ("Goodbye, cruel world....");
}
int
main (void)
{
atexit (bye);
exit (EXIT_SUCCESS);
}