stason.org logo lotus


previous page: 5.2) FAQ credits (alt.sources.mac)page up: alt-sources-mac FAQno next page

5.3) ObSource (alt.sources.mac)

 Books
 TULARC
















Description

This article is from the alt-sources-mac FAQ, by Mark Pilgrim (f8dy@netaxs.com) with numerous contributions by others.

5.3) ObSource (alt.sources.mac)

Since alt.sources.mac is exclusively for posting Macintosh source code, here
is some C code to convert a char to its rot-13 equivalent:

unsigned char Rot13(unsigned char theChar)
{
  return (((theChar|0x20)<'a') || ((theChar|0x20)>'z')) ? theChar :
         ((theChar|0x20)<='m') ? theChar+13 : theChar-13;
}

 

Continue to:


Share and Enjoy

Bookmark this story so others can enjoy it:
  • digg
  • Reddit
  • del.icio.us
  • Furl
  • Wists

Tags

os, Apple, alt-sources-mac







TOP
previous page: 5.2) FAQ credits (alt.sources.mac)page up: alt-sources-mac FAQno next page