Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
Back for a limited time - Get 15% off sitewide on Slashdot Deals with coupon code "BLACKFRIDAY" (some exclusions apply)". ×

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?
This discussion was created for logged-in users only, but now has been archived. No new comments can be posted.

Ancient Programmer Tidbit

Comments Filter:

How many Bavarian Illuminati does it take to screw in a lightbulb? Three: one to screw it in, and one to confuse the issue.