A toy editor written in C