1
0
Fork 0

Spectre/Core/String: Adding to_string() for signed int.

This commit is contained in:
Henrik Hautakoski 2020-12-05 15:06:22 +01:00
parent c731cda1a2
commit 66a4011f4b
2 changed files with 9 additions and 0 deletions

View file

@ -4,6 +4,13 @@
namespace sp {
std::string core::to_string(int value)
{
char buf[32];
sprintf(buf, "%i", value);
return std::string(buf);
}
std::string core::to_string(unsigned int value)
{
char buf[32];