How do I take a function as a function parameter ,heres what I have done but causes an error

Code:
void SetTimer (int * p,int time,void * func)
{
	while(*p > 0)
	{
		wait((time * -1));
	}
        if(func) {  func(); }	
}



It does not work, why??


Keep smiling laugh
http://translation.babylon.com/ - Translate many languages