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

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

version 1.2, 1996/06/26 05:37:52 version 1.3, 1999/05/23 17:37:41
Line 93 
Line 93 
                 if ((eoptind >= nargc) ||                  if ((eoptind >= nargc) ||
                     ((*(place = nargv[eoptind]) != '-') && (*place != '+'))) {                      ((*(place = nargv[eoptind]) != '-') && (*place != '+'))) {
                         place = EMSG;                          place = EMSG;
                         return (EOF);                          return (-1);
                 }                  }
   
                 delim = (int)*place;                  delim = (int)*place;
Line 103 
Line 103 
                          */                           */
                         ++eoptind;                          ++eoptind;
                         place = EMSG;                          place = EMSG;
                         return (EOF);                          return (-1);
                 }                  }
         }          }
   
Line 117 
Line 117 
                  * assume it means EOF when by itself.                   * assume it means EOF when by itself.
                  */                   */
                 if ((eoptopt == (int)'-') && !*place)                  if ((eoptopt == (int)'-') && !*place)
                         return (EOF);                          return (-1);
                 if (strchr(ostr, '#') && (isdigit(eoptopt) ||                  if (strchr(ostr, '#') && (isdigit(eoptopt) ||
                     (((eoptopt == (int)'-') || (eoptopt == (int)'+')) &&                      (((eoptopt == (int)'-') || (eoptopt == (int)'+')) &&
                       isdigit(*place)))) {                        isdigit(*place)))) {

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