Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::string getMsg(std::string res)
- {
- size_t f = res.find(" :");
- if (f == std::string::npos)
- return std::string();
- size_t p = res.find("\r\n");
- if (p != std::string::npos)
- res.erase(p);
- return res.substr(f+2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement