Files
42_INT_12_webserv/srcs/utils.cpp
hugogogo 2a69e14db2 wip atoi
2022-07-31 12:30:35 +02:00

16 lines
284 B
C++

#include "Webserv.hpp"
std::vector<std::string> split(std::string input, char delimiter)
{
std::vector<std::string> answer;
std::stringstream ss(input);
std::string temp;
while (getline(ss, temp, delimiter))
answer.push_back(temp);
return answer;
}