![Netscape ENTERPRISE SERVER 6.1 Manual Download Page 203](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653203.webp)
NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
203
Syntax
int util_strcasecmp(const char *s1, const char *s2);
Returns
1 if
s1
is greater than
s2
.
0 if
s1
is equal to
s2.
-1 if
s1
is less than
s2.
Parameters
char *s1
is the first string.
char *s2
is the second string.
See also
util_strncasecmp
util_strftime
The
util_strftime
function translates a
tm
structure, which is a structure
describing a system time, into a textual representation. It is a thread-safe version of
the standard
strftime
function
Syntax
int util_strftime(char *s, const char *format, const struct tm *t);
Returns
The number of characters placed into
s
, not counting the terminating NULL
character.
Parameters
char *s
is the string buffer to put the text into. There is no bounds checking, so
you must make sure that your buffer is large enough for the text of the date.
const char *format
is a format string, a bit like a
printf
string in that it consists
of text with certain
%x
substrings. You may use the constant HTTP_DATE_FMT to
create date strings in the standard internet format. For more information, see the
documentation on the
printf
function for the run-time library of your compiler.
Refer to Appendix D, “Time Formats” for details on time formats.
const struct tm *t
is a pointer to a calendar time (
tm
) struct, usually created by
the function
system_localtime
or
system
_
gmtime
.
See also
system_localtime, system_gmtime
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...