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.
I have a buffer( 200 bytes long).
The first 38 bytes contains rt, account and serial number as readable numerics.
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 *******.
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.