AminetAminet
Search:
84512 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/c/rot13.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Rot13 'encoding' source code
Author:unknown
Uploader:Andreas_Kleinert t-online de
Type:dev/c
Architecture:m68k-amigaos
Date:1998-10-19
Download:http://aminet.net/dev/c/rot13.lha - View contents
Readme:http://aminet.net/dev/c/rot13.readme
Downloads:592

------------------------ snip -------------------------

/* rot13.c   Bei EBCDIC klappt das natuerlich nicht! */

#include <ctype.h>
#include <stdio.h>

int main()
{
    int c;

    while ((c=getc(stdin))!=EOF)
        putc(islower(c)? 'a'+(c-'a'+13)%26 :
             isupper(c)? 'A'+(c-'A'+13)%26 : c, stdout);
    return 0;
}

------------------------ snip -------------------------

 --
 ARK, 19/Oct/98


Contents of dev/c/rot13.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  191     272  70.2% -lh5- 79f5 Oct 19  1998 rot13/rot13.c
[generic]                  295     511  57.7% -lh5- 33ec Oct 19  1998 rot13/rot13.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files     486     783  62.1%            Oct 19  1998

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>