X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,5e20dd0eb81e05d7 X-Google-Attributes: gidf996b,public From: jyetse@calum.csclub.uwaterloo.ca (Eric Tse) Subject: Re: sigs (was Re: Minor change in the F.A.Q. Please read.) Date: 1997/12/01 Message-ID: #1/1 X-Deja-AN: 294302016 Sender: news@undergrad.math.uwaterloo.ca (news spool owner) References: <347B24B4.A2B045E5@inspace.net> <65npea$do8$9@usenet88.supernews.com> <347FAD2D.4487EB71@on.spammer> <3482D976.E06CA3AB@EuropeM01.nt.com> Organization: Computer Science Club, University of Waterloo Newsgroups: alt.ascii-art In article <3482D976.E06CA3AB@EuropeM01.nt.com>, Gerard Thornley wrote: >Hang on. Am I missing something here. Ah. Hang on. Is this all unix based? No. This C program is not UNIX based. Nor is Rot13. You should be able to run this program on every platform. Hope this helps. > >Veronica Karlsson wrote: > >> This little C program will "scramble"/"unscramble" text for you: >> >> #include >> #include >> >> main() >> { >> int ch; >> >> while ((ch = getchar()) != EOF) >> { >> if ((ch >= 65) && (ch <= 90)) >> { >> ch = 65 + ((ch - 65) + 13) % 26; >> } >> if ((ch >= 97) && (ch <= 122)) >> { >> ch = 97 + ((ch - 97) + 13) % 26; >> } >> printf("%c", ch); >> } >> }