[][src]Function fnmatch_sys::fnmatch

pub unsafe extern "C" fn fnmatch(
    pattern: *const c_char,
    string: *const c_char,
    flags: c_int
) -> c_int

The fnmatch() function checks whether the string argument matches the pattern argument, which is a shell wildcard pattern (see glob(7)).

The flags argument modifies the behavior; it is the bitwise OR of zero or more of the following flags:

`FNM_NOMATCH`
`FNM_NOESCAPE`
`FNM_PATHNAME`
`FNM_PERIOD`

RETURN VALUE Zero if string matches pattern, FNM_NOMATCH if there is no match or another nonzero value if there is an error.