add getc ,putc example.