Go to the source code of this file.
|
int | str_match (const char *, const char *, int) |
|
◆ str_match()
int str_match |
( |
const char * |
string, |
|
|
const char * |
pattern, |
|
|
int |
icase |
|
) |
| |
- Todo:
- These functions are not necessarily nasl-specific and thus subject to be moved (e.g. to misc).
- Todo:
- In parts replacable by g_pattern_match function (when not icase)
Definition at line 29 of file strutils.c.
31 while (*pattern !=
'\0')
38 else if (*pattern ==
'*')
47 else if ((icase && (tolower (*pattern) != tolower (*
string)))
48 || (!icase && (*pattern != *
string)))
53 return *
string ==
'\0';
int str_match(const char *string, const char *pattern, int icase)
References str_match().
Referenced by nasl_match(), and str_match().