Interested in something like JavaScript setTimeout in C on both UNIX and Windows.
Basically, I want:
start_timer(&function_pointer, int time_in_secs)
or as close to him as possible.
Also, something like setInterval would be nice (where it calls a callback every n seconds), but it can be implemented using setTimeout :)
c windows unix posix timer
singpolyma
source share