afc_string_pattern_match

Name

afc_string_pattern_match  -- Use pattern matching against this string

Synopsis

int afc_string_pattern_match ( const char * string, const char * pattern, short no_case );

Description

This function tests if the given string correctly matches the provided pattern using the standard system pattern matching algo. It can be made case insensitive by passing TRUE as no_case value.

Inputs

string

AFC string to convert.

pattern

The pattern string. It doesn't necessarily need to be an AFC string.

no_case

Flag T/F. If TRUE, the pattern matching is done case insensitive.

Result

0

The string matches pattern.

non zero

The string does not match pattern or NULL pointers passed.

Note

See Also