HP C/iX Library Reference Manual (30026-90004)
282 Chapter5
HP C/iX Library Function Descriptions
putw
putw
Writes a word to an open stream.
Syntax
#include <stdio.h>
int putw (int
w
, FILE *
stream
);
Parameters
w
A word to be written to an open stream.
stream
A pointer to an open stream.
Return Values
0 Indicates success.
Non-zero An error occurred.
Description
The putw function writes the word (int in C)
w
to the output
stream
(at the position at
which the file pointer, if defined, is pointing). The size of a word is the size of an integer
and varies from machine to machine. The putw function neither assumes nor causes
special alignment in the file.
See Also
putc(), putchar(), fputc()