Digital UNIX Diffs - write(5) Digital UNIX Diffs - write(5)NAME
write, fwrite - Writes to a file.
LIBRARY
Standard C Library (libc.a for fwrite(3))
SYNOPSIS
#include <unistd.h> ssize_t write(
int filedes ,
const void *buffer,
size_t nbytes );
#include <stdio.h> size_t fwrite(
const void ∗pointer,
size_t size,
size_t num_items,
FILE ∗stream);
PARAMETERS
Identifies the file to which the data is to be written. Points to the
buffer containing the data to be written. Specifies the number of
bytes to write to the file associated with the filedes parameter.
Points to an array. Specifies the size of the variable type of the
array pointed to by the pointer parameter. Specifies the number of
items of data. Specifies the input or output stream.
DIFFERENCESvms-vaxc(5): OpenVMS VAX C vs DEC C Differences
The DEC C RTL functions write(2) and fwrite(3) will write zero length
records. Passing a zero length record to these routines in VAX C RTL
results in no record being written.
RELATED INFORMATION
Functions: write(2), fwrite(3)CATEGORY INDEXvms-vaxc(5)
delim off
Digital UNIX Diffs - write(5)