Sun Java System Web Server 7.0 Update 3 NSAPI Developer's Guide

shexp_valid() Function

The shexp_valid function validates a specified shell expression named by exp. Use this function to validate a shell expression before using the function shexp_match to compare the expression with a string.


int shexp_valid(char *exp);

Return Values

The constant NON_SXP if exp is a standard string.

The constant INVALID_SXP if exp is an invalid shell expression.

The constant VALID_SXP if exp is a valid shell expression.


char *exp is the shell expression (wildcard pattern) to be validated.

See Also

shexp_casecmp() Function, shexp_match() Function, shexp_cmp() Function