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;
name: bit reversal example
source code: |-
input: ' 001'
blank: ' '
start state: S0
table:
S0:
' ' : {R: S1}
0 : {write: 1, L}
1 : {write: 0, L}