If I'm reading your question right, you should be able to read the binary elements into a string and use sprintf() to convert each part of the binary hex into the output text string:
Code:
char sHex[80];
char sOutput[80];
// additional code to read or memcpy() the binary into sHex...
sprintf(sOutput, "%02X%02X%02X%02X",
sHex[0],
sHex[1],
sHex[2],
sHex[3]);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.