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"
33 .\"O getw, putw \- input and output of words (ints)
34 getw, putw \- ワード(int)の入出力
40 .BI "int getw(FILE *" stream );
42 .BI "int putw(int " w ", FILE *" stream );
46 .\"O Feature Test Macro Requirements for glibc (see
47 .\"O .BR feature_test_macros (7)):
49 .RB ( feature_test_macros (7)
59 .\"O Since glibc 2.3.3:
61 _SVID_SOURCE || _BSD_SOURCE ||
64 !(_POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600))
66 .\"O Before glibc 2.3.3:
68 _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE
75 .\"O reads a word (that is, an \fIint\fP) from \fIstream\fP.
76 .\"O It's provided for compatibility with SVr4.
77 .\"O We recommend you use
81 は \fIstream\fP からワード (\fIint\fP型) を読み込む。
82 この関数は、SVr4 との互換性のために提供されている。
88 .\"O writes the word \fIw\fP (that is,
89 .\"O an \fIint\fP) to \fIstream\fP.
90 .\"O It is provided for compatibility with SVr4, but we recommend you use
94 は \fIstream\fP にワード \fIw\fP (\fIint\fP型) を書き込む。
95 この関数は SVr4 との互換性のために提供されているが、この関数の代わりに
98 .\"O .SH "RETURN VALUES"
102 .\"O returns the word read, and
110 .\"O On error, they return \fBEOF\fP.
111 エラーが発生した場合、これらの関数は \fBEOF\fP を返す。
112 .\"O .SH "CONFORMING TO"
114 .\"O SVr4, SUSv2. Not present in POSIX.1-2001.
115 SVr4, SUSv2. POSIX.1-2001 には存在しない。
118 .\"O The value returned on error is also a legitimate data value.
119 エラーの時に返される値は、正しいデータとして返されることもある。
121 .\"O can be used to distinguish between the two cases.
123 を用いると、この二つの場合を区別することが出来る。