FACT++  1.0
int matchString ( char *  wzString,
char *  wzPattern 
)

Definition at line 2209 of file webDid.c.

Referenced by checkSmiObjName().

2210 {
2211  switch (*wzPattern){
2212  case '\0':
2213  return !*wzString;
2214  case '*':
2215  return matchString(wzString, wzPattern+1) ||
2216  ( *wzString && matchString(wzString+1, wzPattern) );
2217  case '?':
2218  return *wzString &&
2219  matchString(wzString+1, wzPattern+1);
2220  default:
2221  return (*wzPattern == *wzString) &&
2222  matchString(wzString+1, wzPattern+1);
2223  }
2224 }
int matchString(char *wzString, char *wzPattern)
Definition: webDid.c:2209

+ Here is the caller graph for this function: