NWSMWildMatch

Indicates if a string matches a search pattern.

Syntax

  #include <smsutapi.h> 
   
  NWBOOLEAN NWSMWildMatch ( 
     STRING   pattern, 
     STRING   string);
  

Parameters

pattern

(IN) Specifies the pattern to search for (see Wildcard Values).

string

(IN) Specifies the string to search.

Return Values

The following table lists the return values associated with the function.

TRUE

string meets the pattern’s specifications.

FALSE

string does not match the pattern.

Remarks

NOTE:This function is supported only for backward compatibility, the NWSMGenericWildMatch function can be used instead of this, as it provides the same functionality.

pattern can contain the following wild cards: ASTERICKS, QUESTION, SQUESTION, or SPERIOD.

If you need double-byte enabling, call NWSMMatchName.

See Also

NWSMIsWild

NWSMWildMatch Example

  #include <smsutapi.h> 
   
  CCODE isWildMatch; 
  char patternBuf[15], stringBuf[15]; /* Arbitrary size. */ 
   
  STRING pattern = (STRING)patternBuf, string = stringBuf; 
   
  isWildMatch = NWSMWildMatch(pattern,string);