News for hackers. Stuff that matters.
Re:How Old School C Programmers Process Arguments by Someone on Sunday January 28, 2018 @06:02AM (#16250782)
If you want to, you can handle that in the switch statement:

    case 'x':
      if(x_set) {
        fprintf(stderr, “can’t set x twice”);
        err = 1;
      } else {
        x_set = true;
      }
      break;
If your machine has 64kB of memory or thereabouts, you may choose to not bother, though.

There are no comments on this comment yet.