#include <pthread.h>
int pthread_detach (pthread_t *thread_ptr);
int pthread_detach
The pthread_detach function marks the threads's internal data structure for deletion.
The pthread_detach function returns zero if the call is successful, otherwise it sets errno to EINVAL and returns -1.
None