mina86 / tinyapps

A collection of tiny applications, mirror of repository at SourceForge.net

This URL has Read+Write access

tinyapps / rot13.c
100644 11 lines (9 sloc) 0.244 kb
1
2
3
4
5
6
7
8
9
10
11
/*
* Encrypts message using ROT13
* Released to Public Domain
*
* This is part of Tiny Applications Collection
* -> http://tinyapps.sourceforge.net/
*/
 
#include <stdio.h>
main(a){while(a=~getchar())putchar(~a-1/(~(a|32)/13*2-11)*13);}