tools.cpp
author Markus Bröker <mbroeker@largo.homelinux.org>
Tue, 02 Feb 2010 13:26:30 +0100
changeset 8 6097dc1fe2cf
parent 0 826dd5531eb0
permissions -rw-r--r--
perror is declared in cstdio

/*
 *  $Id: tools.cpp 54 2008-01-10 00:24:52Z mbroeker $
 * $URL: http://localhost/svn/cpp/qMonitor/trunk/tools.cpp $
 */

#include <tools.h>

std::string itoa (const int &i)
{
    std::stringstream o;

    if (!(o << i))
        return "ERROR";
    return o.str ();
}