Regularize the example executables

The loop that reads from stdin (or files) on the
example executables is complex and doesn't
test for `feof`.

Also the return value was always zero for
`smartypants`, and based on the output of
`fwrite` on `hoedown` (which isn't correct).
This has been corrected.