1: #include <stdio.h> 2: #include <stdlib.h> 3: 4: void 5: fx (void) 6: { 7: puts ("At exit fx"); 8: } 9: 10: void 11: foo (void) 12: { 13: atexit (fx); 14: }