[quote user="Jeff Moran"]but this is a small program[/quote]
That's a common misconception. Any program that performs C I/O is not small, when considered in light of the usual embedded programming standards. This wiki article talks about that.
Thanks and regards,
-George