Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site frog.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!genrad!mit-eddie!cybvax0!frog!john From: john@frog.UUCP (John Woods) Newsgroups: net.flame Subject: Re: Abuse of the Net Message-ID: <208@frog.UUCP> Date: Tue, 25-Jun-85 11:41:32 EDT Article-I.D.: frog.208 Posted: Tue Jun 25 11:41:32 1985 Date-Received: Thu, 27-Jun-85 08:29:14 EDT References: <146@epicen.UUCP> <988@mnetor.UUCP> <230@luke.UUCP> <6099@ucla-cs.ARPA> Distribution: net Organization: Charles River Data Systems, Framingham MA Lines: 30 >Because I consistently mistype the "tr" line, here is the C program I use to read Scott's articles: #include char al[] = "ghijklabcdefstuvwxmnopqrzy"; main() { char *index(); int c; while ((c = getchar()) != EOF) { if (c >= 'A' && c <= 'Z') { c += 'a'-'A'; c = index(al,c) - al + 'A'; } else if (c >= 'a' && c <= 'z') c = index(al,c) - al + 'a'; } } In its entirety. -- John Woods, Charles River Data Systems, Framingham MA, (617) 626-1101 ...!decvax!frog!john, ...!mit-eddie!jfw, jfw%mit-ccc@MIT-XX.ARPA The State Department is paying me to post this message, but if I am caught, they will disavow all knowledge of my actions.