glibc/manual/examples/atexit.c

16 lines
158 B
C
Raw Normal View History

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