Check write(...) errno #43
Clean up of printf to use sprintf and return the error via the Baton
Clean up of gcc warning
Add error text per @mharsch, move to snprintf
Remove extraneous \n
Merge pull request #189 from JayBeavers/checkErrno

Check write(...) errno for #43