Interested in something similar to JavaScript setTimeout in C on both UNIX and Windows. Basically, I want:
start_timer(&function_pointer, int time_in_secs)
I'm trying to write a callback for my timer. I defined the TimerProc like this:
void CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime) { //body of callback }