1 /* cleanup.c -- registers work to do upon exit */ 2 3 typedef void *cu_parm_type; 4 typedef void (*cu_fn_type)(cu_parm_type); 5 void cu_register(cu_fn_type fn, cu_parm_type obj); 6 void cu_unregister(void *obj); 7 void cu_cleanup(void); 8 9 #define CLEANUP 10