epeterso@encore.com (Eric Peterson) (09/19/90)
gt2807a@prism.gatech.EDU (Benjamin H. Cowan) writes: | How does one post a message in rot13. I do know how to read one that has | been posted in rot13 (that was easy to figure out), but I would like to post | such messages and don't know how. I'm not sure of how to convert a posting to rot13 automatically, but here's a short C program that will act as a rot13 filter: ---------8<--------8<--------8<--------8<--------8<--------8<--------8<------- #include <stdio.h> main() { char c; while ((c = getchar()) != EOF) putchar(c >= 'a' && c <= 'z' ? (c - 'a' + 13) % 26 + 'a' : c >= 'A' && c <= 'Z' ? (c - 'A' + 13) % 26 + 'A' : c); } ---------8<--------8<--------8<--------8<--------8<--------8<--------8<------- To use it, first create your text that you want rot13'd. Then say "rot13 < infile > outfile", and it will create a rot13 output file called "outfile". You can then include that in your posting. | Newsgroups: news.ewusers.questions Make sure you spell your newsgroups correctly next time. Followups directed to news.newusers.questions. Hope this helps. Eric -- Eric Peterson <> epeterson@encore.com <> uunet!gould!epeterson Encore Computer Corp. * Ft. Lauderdale, Florida * (305) 587-2900 x5208 Real Time: Here and now, as opposed to Fake Time, which is there and then.