NAME
pptthhrreeaaddcclleeaannuuppppuusshh - add a cleanup function for thread exit
SYNOPSIS
##iinncclluuddee <
void pptthhrreeaaddcclleeaannuuppppuusshh(void (*cleanuproutine)(void *), void *arg);> DESCRIPTION
The pptthhrreeaaddcclleeaannuuppppuusshh() function adds cleanuproutine to the top of the stack of cleanup handlers that get called when the current thread exits. When cleanuproutine is called, it is passed arg as its only argument.RETURN VALUES
pptthhrreeaaddcclleeaannuuppppuusshh() does not return any value. EERRRROORRSS NoneSEE ALSO
pthreadcleanuppop(3), pthreadexit(3) STANDARDSpptthhrreeaaddcclleeaannuuppppuusshh() conforms to ISO/IEC 9945-1:1996 (``POSIX.1'').
BSD July 30, 1998 BSD