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 |
/* |
/* |
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; |