c++ hex string to int code example
Example: string hex to int c++
//C++11
std::string s = "0xfffefffe";
unsigned int x = std::stoul(s, nullptr, 16);
//C++11
std::string s = "0xfffefffe";
unsigned int x = std::stoul(s, nullptr, 16);