Malloc - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
The Session and Request parameters are the same as the ones passed into your
SAF.
specifies the format for the
function that delivers the message.
char *fmt
printf
represents a sequence of parameters for the
function.
...
printf
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
macro is a platform-independent substitute for the C library routine
MALLOC
. It normally allocates from the request's memory pool. If pooled memory
malloc
has been disabled in the configuration file (with the
built-in SAF),
pool-init
and
both obtain their memory from the system heap.
PERM_MALLOC
MALLOC
Syntax
void *MALLOC(int size)
Returns
A void pointer to a block of memory.
Parameters
is the number of bytes to allocate.
int size
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
Chapter 5
NSAPI Function Reference
149

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents