helpers.cpp: Add itoa() function

Origin commit data
------------------
Branch: ni/coolstream
Commit: 38470a8a80
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-03 (Sat, 03 Sep 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2016-09-03 11:44:58 +02:00
parent 29984e3ff5
commit 0d3818862d
2 changed files with 34 additions and 0 deletions

View File

@@ -105,6 +105,8 @@ std::string to_string(unsigned long);
std::string to_string(long long);
std::string to_string(unsigned long long);
std::string itoa(int value, int base);
inline int atoi(std::string &s) { return atoi(s.c_str()); }
inline int atoi(const std::string &s) { return atoi(s.c_str()); }
inline int access(std::string &s, int mode) { return access(s.c_str(), mode); }