Download   Online Shop   Red Hat Network
Home  |  Products  |  Shop  |  Services  |  Training  |  Support   
Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3)

Manpage of GETW

GETW

Section: Linux Programmer's Manual (3)
Updated: September 16, 2025
Index  

NAME

getw, putw - input and output of words (ints)  

SYNOPSIS

#include <stdio.h>
int getw(FILE *stream);
int putw(int w, FILE *stream);
 

DESCRIPTION

getw reads a word (that is, an int) from stream. It's provided for compatibility with SVID. We recommend you use putw writes the word w (that is, an int) to stream. It is provided for compatibility with SVID, but we recommend you use  

RETURN VALUES

Normally, getw returns the word read, and putw returns the word written. On error, they return EOF.  

BUGS

The value returned on error is also a legitimate data value.  

CONFORMING TO

SVID  

SEE ALSO


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
BUGS
CONFORMING TO
SEE ALSO

This document was created by using the manual pages.
Time: 11:58:05 GMT, March 24, 2025

 

 
 
Search for:  on    Powered by Google
Products & Services   :   Download   :   Support   :   Training   :   Partners & Programs
© 2000 Red Hat, Inc. All right reserved.       About Red Hat   :   Legal statement   :   Privacy statement   :   Y2K statement   :   Contact Red Hat