Work on the sprintf(3) logic.
Initial work pre-sprintf refactor.