writer in c