I found the code to convert a hexadecimal string into a signed int using strtol, but I can\'t find something for a short int (2 bytes). Here\' my p
signed int
strtol
You can probably use stringtream class's >> operator with hex manipulator.