![Netscape ENTERPRISE SERVER 6.1 Manual Download Page 153](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653153.webp)
NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
153
The Session and Request parameters are the same as the ones passed into your
SAF.
char *fmt
specifies the format for the
printf
function that delivers the message.
...
represents a sequence of parameters for the
printf
function.
Example
log_error(LOG_WARN, "send-file", sn, rq,
"error opening buffer from %s (%s)"), path,
system_errmsg(fd));
See also
func_exec
M
MALLOC
The
MALLOC
macro is a platform-independent substitute for the C library routine
malloc
. It normally allocates from the request’s memory pool. If pooled memory
has been disabled in the configuration file (with the
pool-init
built-in SAF),
PERM_MALLOC
and
MALLOC
both obtain their memory from the system heap.
Syntax
void *MALLOC(int size)
Returns
A void pointer to a block of memory.
Parameters
int size
is the number of bytes to allocate.
Example
/* Allocate 256 bytes for a name */
char *name;
name = (char *) MALLOC(256);
See also
FREE, CALLOC, REALLOC, STRDUP, PERM_MALLOC, PERM_FREE, PERM_CALLOC,
PERM_REALLOC, PERM_STRDUP
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...