writing in C