| version 1.15, 1999/09/16 11:44:56 |
version 1.16, 1999/09/20 04:38:58 |
| Line 74 fnmatch(pattern, string, flags) |
|
| Line 74 fnmatch(pattern, string, flags) |
|
| |
|
| _DIAGASSERT(pattern != NULL); |
_DIAGASSERT(pattern != NULL); |
| _DIAGASSERT(string != NULL); |
_DIAGASSERT(string != NULL); |
| #ifdef _DIAGNOSTIC |
|
| if (pattern == NULL || string == NULL) |
|
| return (FNM_NOMATCH + 1); |
|
| /* per SUS, return non zero but not FNM_NOMATCH */ |
|
| #endif |
|
| |
|
| for (stringstart = string;;) |
for (stringstart = string;;) |
| switch (c = *pattern++) { |
switch (c = *pattern++) { |