So you're saying to have something like:
Code:
void simpleEncrypt(char input[])
{
int i, len = strlen(input);
//for loop goes through all the characters in input and adds 1 to the ascii value
//of each character
for(i = 0;i < len; i++)
{
input[i]++;
//if the character is now ascii value 91 then we must loop around to ascii
//value 65. In other words goes from Z to A.
if(input[i] == 91)
{
input[i] = 65;
}
//if the character is now ascii value 123 then we must loop around to ascii
//value 97. In other words goes from z to a.
else if(input[i] == 123)
{
input[i] = 97;
}
}
}