bitcoin/bitcoin — pull request #3271 by brandondahler (2013-11-17 04:34:31+00:00)
Title: Use C++ streams instead of C-style printf functions

Convert aoti[64] to fromstr, itostr[64] to tostr.
Add CLogStream (logstream.h), wraps ostringstream but preserved type after insertions.
Use fstream where possible (when no fsync is required).
Change error function to have void return type.
Fix functions relying on the false return from error function.
Use boost::format for localized string token replacement.

Follow up for #3236, #3237, and #3244.

This should remove C99 requirements. Replaces *printf functions with C++ equivalents.