aboutsummaryrefslogtreecommitdiff
path: root/manual/examples/atexit.c
blob: 42bba71126261684e324ea91a4c116d296f5dd00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
#include <stdlib.h>

void 
bye (void)
{
  puts ("Goodbye, cruel world....");
}

int
main (void)
{
  atexit (bye);
  exit (EXIT_SUCCESS);
}