A tiny event emitter in C