Below is a code example:
The article comes from the 9CBS Forum. . . . .
#include #include
Void Fn1 (Void), FN2 (Void), FN3 (Void), FN4 (Void)
INT main (void) {Atexit (fn1); Atexit (FN2); Atexit (FN3); Atexit (FN4); Printf ("this is executed first./n"); system ("pause");}
Void fn1 () {Printf ("next./n"); system ("pause");}
Void fn2 () {Printf ("executed"); system ("pause");}
Void Fn3 () {Printf ("IS"); System ("Pause");}
Void fn4 () {Printf ("this"); system ("pause");}