Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

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:04 GMT, March 24, 2025

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat