0

How can I display "< key>" on the same line if argc != 2?

Example:

check50 2014.fall.pset2.caesar caesar.c

<key> is on the same line

2
  • what do you mean on the same line?
    – kzidane
    Commented Jun 8, 2015 at 17:55
  • right after "... /pset2/caesar < key>"
    – Pascal
    Commented Jun 8, 2015 at 20:25

1 Answer 1

0

I did a mistake; it's already on a new line - don't know what I was thinking...

if (argc != 2)
{
    printf("Usage: path <key>\n");
}

Nothing special.

2
  • Glad you found your own answer, something that's highly encouraged! Now, would you please accept your answer so that your question is removed from the unanswered question pool? Let's keep up on forum housekeeping. ;-)
    – Cliff B
    Commented Jun 8, 2015 at 21:05
  • I have to wait: "You can accept your own answer in 2 days"
    – Pascal
    Commented Jun 8, 2015 at 21:43

You must log in to answer this question.

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