In C I want to compare a string with an array.
I have a 4 element int array which is in hex, and holds a keycode.
I have a 8 element string which holds the ascii equivalent of the keycode (2 bytes of ascii to represent one byte of hex).
What would be a reasonable way to check to see if the string matches the array?
I'mm battling with atoi and itoa as my value can go as high as FF FF FF FF which these functions see as a negative number.
I have a 4 element int array which is in hex, and holds a keycode.
I have a 8 element string which holds the ascii equivalent of the keycode (2 bytes of ascii to represent one byte of hex).
What would be a reasonable way to check to see if the string matches the array?
I'mm battling with atoi and itoa as my value can go as high as FF FF FF FF which these functions see as a negative number.