Rewrite printf with callback for preparation sprintf implementation
Implement sprintf