Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Never use std::sprintf [1]. For a simple conversion between data types, prefer using boost::lexical_cast [2]. For simple formatting with need for templatability, one might want to use std::stringstream or std::strstream [2]. For complex formatting and no need for templatability, one might want to use std::snprintf [2].
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.