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

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