- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
30 years software projects development & management
In one of my applications, I had to toggle the background of a box between two colors, say blue and red. As I like to store an information in only one place, I decided that this place would be the box itself and that I would check the current color … |
|
I suppose I did what most of the people here did : looking for a good idea on the web and stepping into a community of nice people, which deserves a bit of my attention, and perhaps more... I live in France, where I was employed by an American computer … |
|
// 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); } |