home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdio / getw.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  488 b   |  28 lines

  1. @node getw, stdio
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdio.h>
  6.  
  7. int getw(FILE *file);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. Reads a single binary word in native format from @var{file}.
  13.  
  14. @xref{putw}.
  15.  
  16. @subheading Return Value
  17.  
  18. The value read, or @code{EOF} for end-of-file or error.  Since
  19. @code{EOF} is a valid integer, you should use @code{feof} or
  20. @code{ferror} to detect this situation. 
  21.  
  22. @subheading Example
  23.  
  24. @example
  25. int i = getw(stdin);
  26. @end example
  27.  
  28.