C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_getw
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _getw function reads the next binary value of type int from
     the file associated with <stream>. It then increments the
     associated file pointer (if there is one) to point to the next
     unread character. The _getw function does not assume any special
     alignment of items in the stream.
 
     Return Value
 
     The _getw function returns the integer value read. A return value
     of EOF may indicate an error or end-of-file. However, the EOF
     value is also a legitimate integer value, so feof or ferror should
     be used to verify an end-of-file or error condition.
 
     NOTE: The _getw function is provided primarily for compatibility
           with previous libraries. Portability problems may occur with
           _getw, since the size of int and the ordering of bytes
           within int differ across systems.
                                    -♦-