X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,5e20dd0eb81e05d7 X-Google-Attributes: gidf996b,public From: nlevy@usa.net.TO_EMAIL_REMOVE_THIS (Nir Levy) Subject: Re: sigs (was Re: Minor change in the F.A.Q. Please read.) Date: 1997/12/03 Message-ID: <348563b1.11104418@news.ibm.net.il>#1/1 X-Deja-AN: 294842367 References: <347B24B4.A2B045E5@inspace.net> <347B5183.C6@slip.net> <347B5A20.6201DD56@on.spammer> <347B63AE.1025@mpq.mpg.de> <347B6C57.2C67412E@on.spammer> <347C372E.4ECB@mpq.mpg.de> <347CF32E.FF6D5DF@on.spammer> <347D3701.75DB@mpq.mpg.de> <347D8040.63DECDAD@on.spammer> <65npea$do8$9@usenet88.supernews.com> <347FAD2D.4487EB71@on.spammer> <3482D976.E06CA3AB@EuropeM01.nt.com> Organization: (none) Reply-To: nlevy@usa.net.TO_EMAIL_REMOVE_THIS Newsgroups: alt.ascii-art In alt.ascii-art, Gerard Thornley saw fit to bestow on us: >> 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); >> } >> } Why no just do: main() { int ch; while ((ch = getchar()) != EOF) { ch ^= 1; printf("%c", ch); } } ?? /NL -- Nir Levy, The above opinions are my own, nlevy @ usa.net not my employer's. -- I didn't do it; Nobody saw me do it; You can't prove anything; -Bart Simpson --