0

My code returns 1 if argc does not equal 2 which is what it is supposed to do...

:( handles lack of argv[1] \ expected output, not an exit code of 1 :( handles argc > 2 \ expected output, not an exit code of 1

Can someone explain what is going wrong? Everything else passes for Caesar and vigenere

1

if argc is 1 then you are supposed to printf a message to the user and then exit with 1.

2
  • Thank you, I do not know how I missed that... Feb 6 '15 at 3:59
  • don't worry, I missed it, too ;)
    – gitterb
    Feb 6 '15 at 5:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .