NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
175
shexp_casecmp
The
shexp_casecmp
function validates a specified shell expression and compares
it with 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_cmp
function) is not case-sensitive.
Use this function if you have a shell expression like
*.example.com
and you want
to make sure that a string matches it, such as
foo.example.com
.
Syntax
int shexp_casecmp(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
is the string to be compared.
char *exp
is the shell expression (wildcard pattern) to compare against.
See also
shexp_cmp, shexp_match, shexp_valid
shexp_cmp
The
shexp_casecmp
function validates a specified shell expression and compares
it with 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
function) is case-sensitive.
Use this function if you have a shell expression like
*.example.com
and you want
to make sure that a string matches it, such as
foo.example.com
.
Syntax
int shexp_cmp(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.
Summary of Contents for ENTERPRISE SERVER 6.0
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 0 November 2001...
Page 134: ...CGI to NSAPI Conversion 134 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 306: ...cinfo 306 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 312: ...Sample MIME Types File 312 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 324: ...Buffered Streams 324 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 332: ...332 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 340: ...340 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 346: ...346 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 352: ...352 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...