Shexp_Valid; Strdup - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

shexp_valid

The
function validates a specified shell expression named by
shexp_valid
Use this function to validate a shell expression before using the function
to compare the expression with a string.
shexp_match
Syntax
int shexp_valid(char *exp);
Returns
The constant
NON_SXP
The constant
INVALID_SXP
The constant
VALID_SXP
Parameters
is the shell expression (wildcard pattern) to be validated.
char *exp
See also
shexp_casecmp, shexp_match, shexp_cmp

STRDUP

The
macro is a platform-independent substitute for the C library routine
STRDUP
. It creates a new copy of a string in the request's memory pool.
strdup
The
routine is functionally equivalent to:
STRDUP
newstr = (char *) MALLOC(strlen(str) + 1);
strcpy(newstr, str);
A string created with
Syntax
char *STRDUP(char *ptr);
Returns
A pointer to the new string.
Parameters
is a pointer to a string.
char *ptr
if
is a standard string.
exp
if
is a shell expression, but invalid.
exp
if
is a valid shell expression.
exp
should be disposed with FREE.
STRDUP
NSAPI Functions (in Alphabetical Order)
Chapter 5
NSAPI Function Reference
.
exp
177

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents