1 2 3 4 5 6 7
#include <threads.h> #include <pthread.h> _Noreturn void thrd_exit(int res) { pthread_exit(&res); }