I want to convert a hex string to a 32 bit signed integer in C++.
So, for example, I have the hex string \"fffefffe\". The binary representation of this is 111111
just use stoi/stol/stoll for example:
std::cout << std::stol("fffefffe", nullptr, 16) << std::endl;
output: 4294901758