Without seeing soms code it's not clear what you want to do.
Something like this ?
KurtCode:#include <stdio.h> int main() { int x = -128; printf("=%2X\n", x & 0xff); }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 5 of 5
Thread: printf messing up hex numbersThreaded View
|
Click Here to Expand Forum to Full Width |