Go to the first, previous, next, last section, table of contents.


putw

Syntax

#include <stdio.h>

int putw(int x, FILE *file);

Description

Writes a single binary word in native format to file.

Return Value

The value written, or EOF for end-of-file or error. Since EOF is a valid integer, you should use feof or ferror to detect this situation.

Portability

not ANSI, not POSIX

Example

putw(12, stdout);


Go to the first, previous, next, last section, table of contents.