www.delorie.com/djgpp/doc/libc-2.01/libc_354.html   search  
Go to the first, previous, next, last section, table of contents.


getw

Syntax

#include <stdio.h>

int getw(FILE *file);

Description

Reads a single binary word in native format from file.

See section putw.

Return Value

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

Example

int i = getw(stdin);


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

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997