Util_Sprintf; Util_Strcasecmp - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
See also
util_sprintf, util_vsnprintf, util_vsprintf

util_sprintf

The
into a specified buffer using the
returns the number of characters in the formatted buffer.
Because
you are certain that the string fits the buffer. Otherwise, use the function
util_snprintf
function for the run-time library of your compiler.
Syntax
int util_sprintf(char *s, char *fmt, ...);
Returns
The number of characters formatted into the buffer.
Parameters
char *s
char *fmt
does not handle any width or precision strings.
represents a sequence of parameters for the
...
Example
char *logmsg;
int len;
logmsg = (char *) MALLOC(256);
len = util_sprintf(logmsg, "%s %s %s\n", ip, method, uri);
See also
util_snprintf, util_vsnprintf, util_vsprintf

util_strcasecmp

The
strings and returns a -1, 0, or 1 to signal which is larger or that they are identical.
The comparison is not case-sensitive.
198
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
function formats a specified string, using a specified format,
util_sprintf
doesn't perform bounds checking, use this function only if
util_sprintf
. For more information, see the documentation on the
is the buffer to receive the formatted string.
is the format string. The function handles only
function performs a comparison of two alpha-numeric
util_strcasecmp
-style syntax without bounds checking. It
printf
printf
printf
and
strings; it
%d
%s
function.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents