[BACK]Return to getopt.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / getopt

Diff for /src/usr.bin/getopt/getopt.c between version 1.2 and 1.3

version 1.2, 1996/06/26 05:33:45 version 1.3, 1997/01/15 23:42:32
Line 16 
Line 16 
         int status = 0;          int status = 0;
   
         optind = 2;     /* Past the program name and the option letters. */          optind = 2;     /* Past the program name and the option letters. */
         while ((c = getopt(argc, argv, argv[1])) != EOF)          while ((c = getopt(argc, argv, argv[1])) != -1)
                 switch (c) {                  switch (c) {
                 case '?':                  case '?':
                         status = 1;     /* getopt routine gave message */                          status = 1;     /* getopt routine gave message */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3