Hello - Is there a problem with certain input types for scanf, out there? I have:
UINT16 is a short unsigned int, and UINT8 is a short unsigned char.
I get a warning of different type formats and args. I tried putting the h in %2hX and a %c for the char's, and then my code wouldn't even compile....Is there some glitch with scanning smaller numbers?
thanks!
Code:
UINT16 code;
UINT8 type;
UINT16 mask;
UINT8 format;
sscanf("0x%2X, %d, 0x%2X, %d", code, type, mask, format);
I get a warning of different type formats and args. I tried putting the h in %2hX and a %c for the char's, and then my code wouldn't even compile....Is there some glitch with scanning smaller numbers?
thanks!
Comment