flushes dest on putc
Merge pull request #6 from pilu/flush

flushes dest on putc