I'm getting a hexadecimal input from the command line and I can't seem to get it to convert. I know, I know, use strtol(). The problem is I keep getting zero as the result. I hard-code hex strings ("0x13","0XF") and they work fine. I print out the string on the line before the conversion and it looks fine too.