I finished my vigenere and it works good with all the parameters but when I go through check50 with BaZ keyword, check50 give this answer
jharvard@appliance (~/Dropbox/CS50/pset2): ./vigenere BaZ
BaRFoo
CaQGon
jharvard@appliance (~/Dropbox/CS50/pset2): check50 2014/x/pset2/vigenere vigenere.c
:) vigenere.c exists
:) vigenere.c compiles
:) encrypts "a" as "a" using "a" as keyword
:) encrypts "world, say hello!" as "xoqmd, rby gflkp!" using "baz" as keyword
:( encrypts "BaRFoo" as "CaQGon" using "BaZ" as keyword
\ expected output, but not "Ca\u0000QGo\u000en\n"
:) encrypts "BARFOO" as "CAQGON" using "BAZ" as keyword
:) handles lack of argv[1]
:) handles argc > 2
:) rejects "Hax0r2" as keyword
https://sandbox.cs50.net/checks/da3280c78bdd4dd99b1a3953284dfba8
I hope you guys can give some word of advice, Thanks a lot.
Regards!
\u0000
means that there is a unicode character being inserted after thea
ando
. Check that the function is appending characters, and not strings.