Free - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
Returns
A pointer to a new buffer structure to hold the data, if successful or NULL if no
buffer could be opened.
Parameters
SYS_FILE fd
already been opened.
int sz
struct stat *finfo
filebuf_open_nostat
retrieve the file information.
Example
filebuf *buf = filebuf_open_nostat(fd, FILE_BUFFERSIZE, &finfo);
if (!buf) {
}
See also
filebuf_close, filebuf_open, filebuf_getc, filebuf_buf2sd

FREE

The
FREE
free
from the request's memory pool.
Syntax
FREE(void *ptr);
Returns
void
Parameters
void *ptr
created by
Example
char *name;
name = (char *) MALLOC(256);
...
FREE(name);
146
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
is the platform-independent file descriptor of the file which has
is the size, in bytes, to be used for the buffer.
is the file information of the file. Before calling the
function, you must call the
system_fclose(fd);
macro is a platform-independent substitute for the C library routine
. It deallocates the space previously allocated by
is a
(void *)
,
MALLOC
CALLOC
pointer to a block of memory. If the pointer is not one
, or
, the behavior is undefined.
STRDUP
request_stat_path
,
, or
MALLOC
CALLOC
function to
STRDUP

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents