.\" openfwtk project: namatch.3 1-Nov-2000 .TH namatch 3 .SH NAME namatch(),nacasematch() \- generic name-based match functions .SH SYNOPSIS .nf #include "fwfunc.h" .fi .sp int \fBnamatch\fP(char *pattern,char *string) .sp int \fBnacasematch\fP(char *pattern,char *string) .SH DESCRIPTION The \fInamatch\fP and \fInacasematch\fP function implement a poor man's pseudo-regexp matcher (* and ? wildcards are availible in pattern) .SH RETURN VALUES the function returns non-zero if the \fIstring\fP matches pattern, 0 if it does not. .PP nacasematch is case-insensitive. .SH SEE ALSO hostmatch(3) .SH HISTORY Functions are public domain software by Guido van Rossum (included in fwtk since 1.0)