[Solved] How to Convert C++ sscanf_s() function to C# [closed]


If I understand the function of sscanf_s correctly from Martin Bonner’s explanation, you are looking for how to convert a string that represents hexadecimal digits into an int. You can do so with the following:

iHex = Convert.ToInt32(sHex, 16);

This being said, whether or not you want to actually use int for your conversion result depends on how you are implementing the rest of that function. (Not all ints are created equal across languages.)

5

solved How to Convert C++ sscanf_s() function to C# [closed]