All pastes #332749 Raw Edit

Miscellany

public text v1 · immutable
#332749 ·published 2007-01-30 07:08 UTC
rendered paste body
/************************************************\              caesar.c livinded 2006  This uses a simple encryption method known as  the caesar cipher to encrypt a line of text  entered by the user by offsetting the value  of the letters in a line entered, or decrypt  a line of line of text by selecting the   correct negative offset.  Do whatever the hell you want with this, it's  open source and all that fancy stuff.\***********************************************/#include <stdio.h>#include <stdlib.h>#include <ctype.h>#include <string.h>#define LINEMAX 80char positive(char *s, int shift);char negative(char *s, int shift);void file(char *file, int shift);int main(int argc, char *argv[]){	int shift;	if (argc == 1)	{		int i;		char *p;		char line[LINEMAX];		char linemodified[LINEMAX];		printf("Enter the number of shifts you want to make up or down.\n>>> ");		fgets(line, sizeof(line), stdin);		sscanf(line, "%d",