diff --git a/tools.cpp b/tools.cpp new file mode 100644 --- /dev/null +++ b/tools.cpp @@ -0,0 +1,15 @@ +/* + * $Id: tools.cpp 54 2008-01-10 00:24:52Z mbroeker $ + * $URL: http://localhost/svn/cpp/qMonitor/trunk/tools.cpp $ + */ + +#include + +std::string itoa (const int &i) +{ + std::stringstream o; + + if (!(o << i)) + return "ERROR"; + return o.str (); +}