Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 3 Dec 1997.
Re: sigs (was Re: Minor change in the F.A.Q. Please read.)

Re: sigs (was Re: Minor change in the F.A.Q. Please read.)

In alt.ascii-art, Gerard Thornley <SMPT:GTH...@EuropeM01.nt.com> saw fit to bestow on us:

>> This little C program will "scramble"/"unscramble" text for you:
>>
>> #include <stdlib.h>
>> #include <stdio.h>
>>
>> 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
                         --
                         

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,5e20dd0eb81e05d7
X-Google-Attributes: gidf996b,public
From: nle...@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: <348...@news.ibm.net.il>#1/1
X-Deja-AN: 294842367
References: <347...@inspace.net> <347...@slip.net> <347...@on.spammer> <347...@mpq.mpg.de> <347...@on.spammer> <347...@mpq.mpg.de> <347...@on.spammer> <347...@mpq.mpg.de> <347...@on.spammer> <65npea$do8$9...@usenet88.supernews.com> <347...@on.spammer> <348...@EuropeM01.nt.com>
Organization: (none)
Reply-To: nle...@usa.net.TO_EMAIL_REMOVE_THIS
Newsgroups: alt.ascii-art
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 1997 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.