C - control reaches end of non-void function C - control reaches end of non-void function multithreading multithreading

C - control reaches end of non-void function


Returning NULL is fine, and is the normal way. Nothing will use the return value unless you write code to use it. NULL is a valid value for void *, and if you don't care what that value is, then the only thing that matters is that it's a valid one.


try something like this:

#include <pthread.h>void* you_func( void* param ) {   // do stuff here ...   // and terminates as follows:   pthread_exit( NULL );}

hope that helps you.