C++: how to get fprintf results as a std::string w/o sprintf C++: how to get fprintf results as a std::string w/o sprintf unix unix