I did received help on how to display a hex value.
I'm now looking for a way to extract a hex value out of a buffer.
Ex.
I have a buffer( 200 bytes long).
The first 38 bytes contains rt, account and serial number as readable numerics.
0012333990000000080002340000051751177
From this I'm able to manipulate via string copies ....
strncpy(&rt,buffer_input + 1,10);
strncpy(&account,buffer_input + 11,18); ..ect
Postions 39-46 is the amount field *******IN HEX *******.
00000050
0000000C
QUESTION 1.....how can I display the hex value from this buffer.
(can I use a strncpy + other manipulations)
strncpy(&hex,buffer_input + 39,8);
QUESTION 2 can I change this hex value to a "readable" numeric and write out to a file.
Thanks for any recommendations in advance.
MMC