This is the code I am using to change the string
key into their respective shift values. For some reason as I have put a printf
to test this, it outputs some weird strings
of numbers.
int k[strlen(c)];
for(int i = 0; i < strlen(c); i++)
{
if(islower(k[i]))
k[i] = c[i] - 'a';
else
k[i] = c[i] - 'A';
printf("%i", k[i]);
}
c is equal to argv[1]