Been able to write code to encrypt text (vigenere encryption). But one question intrigues me.
If I use
encryption does not produce expected output for, for example, "world, say hello!" as it messes up the key index (I suppose!) (check50).
but if I use
if ((s[i] != ' ') || (!isalpha(s[i])))
(may be I should try (ispunct(s[i]) and (isspace(s[i]): does work, just checked).
The question still is something I would like to know:
Does isalpha() treat 'space' character as a part of alphabet?
Being a novice at programming, I hope someone can clarify this.