Rewrote printf and friends to better support standard C semantics.