Skip to content

Instantly share code, notes, and snippets.

View oxbambooxo's full-sized avatar

Ben oxbambooxo

View GitHub Profile
@oxbambooxo
oxbambooxo / libuv_cat.c
Last active March 30, 2017 13:52
"cat" in libuv without global variables
#include <stdlib.h>
#include <unistd.h>
#include <uv.h>
typedef struct req_bundle_s {
uv_loop_t *loop;
uv_fs_t *read_req;
uv_fs_t *writ_req;