a simple text editor written in C