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
Have you considered sscanf with the "%hx" conversion qualifier?
sscanf