Prev: rs232 -help!
Next: fopen_s
From: bob on
What is the easiest way to convert a hex string to binary?

Thank you.

From: William DePalo [MVP VC++] on
<bob(a)coolgroups.com> wrote in message
news:1151385033.543328.213340(a)b68g2000cwa.googlegroups.com...
> What is the easiest way to convert a hex string to binary?

If you have a string of ANSI chars, each of which represents a "nibble",
then check the docs for strtol() and strtoul(). For UNICODE characters try
wcstol() and wcstoul().

Regards,
Will


 | 
Pages: 1
Prev: rs232 -help!
Next: fopen_s