Sun Java System Web Server 7.0 Update 4 NSAPI Developer's Guide

system_fwrite() Function

The system_fwrite function writes a specified number of bytes from a specified buffer into a specified file.

Before system_fwrite can be used, you must open the file using any of the system_fopen functions except system_fopenRO.


int system_fwrite(SYS_FILE fd, char *buf, int sz);

Return Values

The constant IO_OKAY if the write succeeds, or the constant IO_ERROR if the write fails.


SYS_FILE fd is the platform-independent file descriptor.

char *buf is the buffer containing the bytes to be written.

int sz is the number of bytes to write to the file.

See Also

system_errmsg() Function, system_fopenRO() Function, system_fopenRW() Function, system_fopenWA() Function, system_lseek() Function, system_fread() Function, system_fwrite() Function, system_fwrite_atomic() Function, system_flock() Function, system_ulock() Function, system_fclose() Function