Shexp_Match - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
Parameters
char *str
char *exp
Example
/* Use wildcard match to see if this path is one we want */
char *path;
char *match = "/usr/netscape/*";
if (shexp_cmp(path, match) != 0)
See also
shexp_casecmp, shexp_match, shexp_valid

shexp_match

The
against a specified string. It returns one of three possible values representing
match, no match, and invalid comparison. The comparison (in contrast to that of
the
shexp_casecmp
The
shexp_match
instead the function assumes that you have already called
Use this function if you have a shell expression like
to make sure that a string matches it, such as
Syntax
int shexp_match(char *str, char *exp);
Returns
0 if a match was found.
1 if no match was found.
-1 if the comparison resulted in an invalid expression.
Parameters
char *str
char *exp
against.
See also
shexp_casecmp, shexp_cmp, shexp_valid
176
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
is the string to be compared.
is the shell expression (wildcard pattern) to compare against.
return REQ_NOACTION;
function compares a specified pre-validated shell expression
shexp_match
function) is case-sensitive.
function doesn't perform validation of the shell expression;
is the string to be compared.
is the pre-validated shell expression (wildcard pattern) to compare
/* no match */
*.example.com
foo.example.com
.
shexp_valid
and you want
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents