Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


getw()                    STDIO Function                   getw()




Read word from file stream

#include <stdio.h>
int getw(fp) FILE *fp;

getw reads a word (an int) from the file stream fp.

getw  differs from  getc in  that getw gets  and returns  an int,
whereas getc  returns either a  char promoted to an  int, or EOF.
To detect EOF while using getw, you must use feof.

***** See Also *****

canon, getc(), STDIO

***** Notes *****

getw returns EOF on errors.

getw assumes  that the bytes of  the word it receives  are in the
natural byte ordering of the machine.  This means that such files
might not be portable between machines.


































COHERENT Lexicon                                           Page 1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026