HEX values?

Thread Starter

BReeves

Joined Nov 24, 2012
410
I need turn a 6 digit hex number into an 8 digit hex number with the 6 digits the least significant digits of the 8 digit number.

In otherwords lets say I have... A00BCD, I need to end up with FFA00BCD. The leading FF in the 8 digit number will always be FF and range from FF000000 to FFFFFFFF.

I know there must be an easy way to do this in C but it is escaping me.

Thanks
 

kubeek

Joined Sep 20, 2005
5,795
Yeah, but the size warning was kinda pointless, because you don´t usually get 3byte numbers, so if you can fit 3B you will be able to fit 4B. But the singned-ness will matter.
 
Top