modified itoa and its headers
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
#include "Webserv.hpp"
|
||||
#include "utils.hpp"
|
||||
|
||||
std::vector<std::string> split(std::string input, char delimiter)
|
||||
{
|
||||
@@ -13,3 +13,13 @@ std::vector<std::string> split(std::string input, char delimiter)
|
||||
return answer;
|
||||
}
|
||||
|
||||
char* itoa(int n)
|
||||
{
|
||||
std::stringstream strs;
|
||||
char * str;
|
||||
|
||||
strs << n;
|
||||
str = (char*)(strs.str().c_str());
|
||||
return (str);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user