This repository has been archived on 2022-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
Files
urtrator/vendor/github.com/mattn/go-pointer/_example/callback.h
Jon Chen 737231705f adds vendor directory
vendors dependencies in standard `vendor` directory, managed by glide
2017-05-14 19:35:03 -07:00

10 lines
147 B
C

#include <unistd.h>
typedef void (*callback)(void*);
static void call_later(int delay, callback cb, void* data) {
sleep(delay);
cb(data);
}