![Netscape ENTERPRISE SERVER 6.1 Скачать руководство пользователя страница 181](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653181.webp)
NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
181
shexp_valid
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.
Syntax
int shexp_valid(char *exp);
Returns
The constant
NON_SXP
if
exp
is a standard string.
The constant
INVALID_SXP
if
exp
is a shell expression, but invalid.
The constant
VALID_SXP
if
exp
is a valid shell expression.
Parameters
char *exp
is the shell expression (wildcard pattern) to be validated.
See also
shexp_casecmp, shexp_match, shexp_cmp
STRDUP
The
STRDUP
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.
The
STRDUP
routine is functionally equivalent to:
A string created with
STRDUP
should be disposed with FREE.
Syntax
char *STRDUP(char *ptr);
Returns
A pointer to the new string.
Parameters
char *ptr
is a pointer to a string.
newstr = (char *) MALLOC(strlen(str) + 1);
strcpy(newstr, str);
Содержание ENTERPRISE SERVER 6.1
Страница 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Страница 18: ...Where to Find Related Information 18 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 138: ...CGI to NSAPI Conversion 138 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 214: ...NSAPI Functions in Alphabetical Order 214 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 310: ...The Netscape LDAP Schema 310 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 324: ...Sample MIME Types File 324 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...