+1
needs to add '\0' at the end of string before returning form function.
Your code will show asserts bcz in a unsafe manner u are storing the strings.don't use char* only in main to point it. May use static allocation like array or better use dynamic allocation inside functions and after use in main u can free the memory.
Include ctype.h to make toupper() work.
Needs to check ur logic... of incript and decript.Try to debug and find it ursef why it's not giving expected result.





by: mrjoltcolaPosted on 2009-10-22 at 19:47:35ID: 25641020
Why in your encipher do you use 65 to add, when in your decipher you use 64 to subtract. Seems it should be symmetrical to me. Isn't this a Caesar cipher?