System_Fread; System_Fwrite - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
Returns
The system-independent file descriptor (
) if the open succeeded or 0 if the
SYS_FILE
open failed.
Parameters
is the file name.
char *path
See also
system_errmsg, system_fopenRO, system_fopenRW, system_lseek,
system_fread, system_fwrite, system_fwrite_atomic, system_flock,
system_ulock, system_fclose

system_fread

The
function reads a specified number of bytes from a specified file
system_fread
into a specified buffer. It returns the number of bytes read. Before
system_fread
can be used, you must open the file using any of the
functions,
system_fopen
except
.
system_fopenWA
Syntax
int system_fread(SYS_FILE fd, char *buf, int sz);
Returns
The number of bytes read, which may be less than the requested size if an error
occurred or the end of the file was reached before that number of characters were
obtained.
Parameters
is the platform-independent file descriptor.
SYS_FILE fd
is the buffer to receive the bytes.
char *buf
is the number of bytes to read.
int sz
See also
system_errmsg, system_fopenRO, system_fopenRW, system_fopenWA,
system_lseek, system_fwrite, system_fwrite_atomic, system_flock,
system_ulock, system_fclose

system_fwrite

The
function writes a specified number of bytes from a specified
system_fwrite
buffer into a specified file.
Chapter 5
NSAPI Function Reference
181

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents