Create writer.c

CodeEval Challenge: writer.c