Mm Lab on Twitter
I love indexing constant strings, I’m sad like that.
for example,
char c=”0123456789abcdef”[b&15];
converts the low nybble of byte b into its hex character.
oldie, but goldie.
Posted by: Alex
Categories: Code Tags: c tips