Follow Slashdot stories on Twitter


Forgot your password?
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. ×

Submission + - Ancient Programmer Tidbit

jlbprof writes: When I was a young programmer (back in Apple II days). I had a much older programmer as a mentor. He once told me something that I have not seen anywhere written yet it is an absolute truth.

A Control Character's value can be calculated by bitwise anding the character with 0x1F.

Example: Carriage Return is a 0x0D or a control M.
M is 0x4D & 0x1F = 0x0D Voila!

Did you know that?

Slashdot Top Deals

The trouble with computers is that they do what you tell them, not what you want. -- D. Cohen