Re: How to convert to and from HEX?

new topic     » goto parent     » topic index » view thread      » older message » newer message
tonysteward said...

I am able to convert a sequence to hex for storage in a bin file but how do I convert it back?

As in if I have a sequence "12" and pass that through th following function I get the desired result. But how can I convert that back again

Use %x inside of printf / sprintf:

printf(1, "18 = #%x\n", 18) 

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu