1 .\" Copyright (c) 1995 by Jim Van Zandt <jrv@vanzandt.mv.com>
3 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
4 .\" all rights reserved.
5 .\" Translated Wed Dec 24 12:33:19 JST 1997
6 .\" by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
7 .\" Updated Sun Jun 18 16:38:02 JST 2000
8 .\" by Kentaro Shirakata <argrath@ub32.org>
10 .\" Permission is granted to make and distribute verbatim copies of this
11 .\" manual provided the copyright notice and this permission notice are
12 .\" preserved on all copies.
14 .\" Permission is granted to copy and distribute modified versions of this
15 .\" manual under the conditions for verbatim copying, provided that the
16 .\" entire resulting derived work is distributed under the terms of a
17 .\" permission notice identical to this one.
19 .\" Since the Linux kernel and libraries are constantly changing, this
20 .\" manual page may be incorrect or out-of-date. The author(s) assume no
21 .\" responsibility for errors or omissions, or for damages resulting from
22 .\" the use of the information contained herein. The author(s) may not
23 .\" have taken the same level of care in the production of this manual,
24 .\" which is licensed free of charge, as they might when working
27 .\" Formatted or processed versions of this manual, if unaccompanied by
28 .\" the source, must acknowledge the copyright and authors of this work.
30 .TH GETW 3 2010-09-26 "GNU" "Linux Programmer's Manual"
32 getw, putw \- ワード(int)の入出力
37 .BI "int getw(FILE *" stream );
39 .BI "int putw(int " w ", FILE *" stream );
44 .RB ( feature_test_macros (7)
55 _SVID_SOURCE || _BSD_SOURCE ||
58 !(_POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600))
61 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE
67 は \fIstream\fP からワード (\fIint\fP型) を読み込む。
68 この関数は、SVr4 との互換性のために提供されている。
74 は \fIstream\fP にワード \fIw\fP (\fIint\fP型) を書き込む。
75 この関数は SVr4 との互換性のために提供されているが、この関数の代わりに
84 エラーが発生した場合、これらの関数は \fBEOF\fP を返す。
86 SVr4, SUSv2. POSIX.1-2001 には存在しない。
88 エラーの時に返される値は、正しいデータとして返されることもある。
90 を用いると、この二つの場合を区別することが出来る。