Util_Strncasecmp; Util_Uri_Escape - Netscape ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)

util_strncasecmp

The
the alpha-numeric strings and returns a -1, 0, or 1 to signal which is larger or that
they are identical.
The function's comparison is not case-sensitive.
Syntax
int util_strncasecmp(const char *s1, const char *s2, int n);
Returns
1 if
s1
0 if
s1
-1 if
s1
Parameters
char *s1
char *s2
int n
See also
util_strcasecmp

util_uri_escape

The
util_uri_escape
URI format (%XX where XX is the hexadecimal equivalent of the ASCII character),
and returns the escaped string. The special characters are
carriage-return, and line-feed.
Use
util_uri_escape
Syntax
char *util_uri_escape(char *d, char *s);
Returns
The string (possibly newly allocated) with escaped characters replaced.
Parameters
char *d
and returns it. If
d
copies the formatted special characters into the new string, then returns it.
204
Netscape Enterprise Server NSAPI Programmer's Guide • April 2002 (Draft)
function performs a comparison of the first
util_strncasecmp
is greater than
s2.
is equal to
s2.
is less than
s2.
is the first string.
is the second string.
is the number of initial characters to compare.
function converts any special characters in the URI into the
before sending a URI back to the client.
is a string. If
is not NULL, the function copies the formatted string into
d
is NULL, the function allocates a properly-sized string and
d
characters in
n
, space,
%?#:+&*"<>

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents