putc is a better choice.