-

Changes

Jump to: navigation, search

Functions HI-TECH C GETW

666 bytes added, 20:26, 31 July 2017
Created page with "<strong>GETW</strong> ==SYNOPSIS== #include <stdio.h> int getw(FILE * stream) ==DESCRIPTION== <strong>Getw</strong>() returns one word (16 bits for the Z80 and 8086)..."
<strong>GETW</strong>
==SYNOPSIS==

#include <stdio.h>

int getw(FILE * stream)


==DESCRIPTION==
<strong>Getw</strong>() returns one word (16 bits for the Z80 and 8086)
from the nominated stream. EOF is returned on end-of-file, but since this is a perfectly good word, the
<strong>feof</strong>() macro should be used for testing for end-of-
file. When reading the word, no special alignment in
the file is necessary, as the read is done by two consecutive <strong>getc</strong>()'s. The byte ordering is however undefined. The word read should in general have been written by <strong>putw</strong>().

==SEE ALSO==

putw, getc, fopen, fclose

Navigation menu