// Shortest function to convert an ascii hex digit to binary
// (assumes a valid hex digit 0-9, A-F, a-f)
char asciihex2bin(char ascii)
{
if (ascii > 0x40) ascii += 9;
return (ascii & 0x0F);
}
ponedelnik 0 Newbie Poster
David W 131 Practically a Posting Shark
David W 131 Practically a Posting Shark
ponedelnik 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.