modified itoa and its headers

This commit is contained in:
hugogogo
2022-07-31 12:59:27 +02:00
parent 2a69e14db2
commit cbb1d12d54
6 changed files with 26 additions and 60 deletions

View File

@@ -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);
}