Mercurial Hosting > asciicaesar
annotate asciicaesar.c @ 2:c96b197faa9d default tip
Autmatic Win32 Porting
author | VilyaemKenyaz |
---|---|
date | Thu, 28 Sep 2023 13:20:40 -0400 |
parents | d0fbe0f50dfb |
children |
rev | line source |
---|---|
0 | 1 // Encryption and Decryption Program |
2 | |
3 #include <stdio.h> | |
4 #include <stdlib.h> | |
5 #include <string.h> | |
6 | |
7 void main(int argc, char*argv[]){ | |
2 | 8 char *string = argv[1]; |
9 int modifier = atoi(argv[2]); | |
10 char newchar; | |
11 for(int i = 0;i != strlen(string);i++){ | |
12 newchar = string[i] + modifier; | |
13 printf("%c",newchar); | |
14 } | |
15 exit(0); | |
0 | 16 } |