/[mailutils]/mailutils/readmsg/msglist.c
ViewVC logotype

Diff of /mailutils/readmsg/msglist.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by alainm, Mon Dec 31 16:39:44 2001 UTC revision 1.4 by gray, Thu May 2 12:33:01 2002 UTC
# Line 38  addset (int **set, int *n, unsigned val) Line 38  addset (int **set, int *n, unsigned val)
38  }  }
39    
40  static int  static int
41  isnumber (const char *s)  is_number (const char *s)
42  {  {
43    int is_number = 1;    int result = 1;
44    if (*s == '\0')    if (*s == '\0')
45      is_number = 0;      result = 0;
46    for (; *s; s++)    for (; *s; s++)
47      {      {
48        if (!isdigit ((unsigned char)*s))        if (!isdigit ((unsigned char)*s))
49          {          {
50            is_number = 0;            result = 0;
51            break;            break;
52          }          }
53      }      }
54    return is_number;    return result;
55  }  }
56    
57  /*  /*
# Line 107  msglist (mailbox_t mbox, int show_all, i Line 107  msglist (mailbox_t mbox, int show_all, i
107          }          }
108        /* 3.     Finally, the selection may be some text to match.  This  will  select  a  mail        /* 3.     Finally, the selection may be some text to match.  This  will  select  a  mail
109           message which exactly matches the specified text.  */           message which exactly matches the specified text.  */
110        else if (!isnumber(argv[i]))        else if (!is_number(argv[i]))
111          {          {
112            size_t j;            size_t j;
113            int found = 0;            int found = 0;

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

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26