10 lines
147 B
C
Raw Normal View History

2019-11-27 13:22:23 +01:00
#include <unistd.h>
typedef void (*callback)(void*);
static void call_later(int delay, callback cb, void* data) {
sleep(delay);
cb(data);
}