.\" Modified 1993-07-24, Rik Faith (faith@cs.unc.edu)
.\" Modified 2002-08-10, 2003-11-01 Walter Harms, aeb
.\"
-.\" Japanese Version Copyright (c) 1996 Kenji Kajiwara
-.\" all rights reserved.
-.\" Translated Mon Jul 15 18:00:00 JST 1996
-.\" by Kenji Kajiwara
-.\" Proof Reading: Takashi Yoshino
-.\" Updated & Modified Sun May 30 13:03:43 JST 2004
-.\" by Yuichi SATO <ysato444@yahoo.co.jp>
+.\"*******************************************************************
.\"
-.TH DIV 3 2010-09-20 "" "Linux Programmer's Manual"
-.\"O .SH NAME
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH DIV 3 2012\-04\-17 "" "Linux Programmer's Manual"
.SH 名前
-.\"O div, ldiv, lldiv, imaxdiv \- compute quotient and remainder of
-.\"O an integer division
div, ldiv, lldiv, imaxdiv \- integer 型の割算の商と余りを計算する
-.\"O .SH SYNOPSIS
.SH 書式
.nf
-.B #include <stdlib.h>
+\fB#include <stdlib.h>\fP
.sp
-.BI "div_t div(int " numerator ", int " denominator );
+\fBdiv_t div(int \fP\fInumerator\fP\fB, int \fP\fIdenominator\fP\fB);\fP
.br
-.BI "ldiv_t ldiv(long " numerator ", long " denominator );
+\fBldiv_t ldiv(long \fP\fInumerator\fP\fB, long \fP\fIdenominator\fP\fB);\fP
.br
-.BI "lldiv_t lldiv(long long " numerator ", long long " denominator );
+\fBlldiv_t lldiv(long long \fP\fInumerator\fP\fB, long long \fP\fIdenominator\fP\fB);\fP
.sp
-.B #include <inttypes.h>
+\fB#include <inttypes.h>\fP
.sp
-.BI "imaxdiv_t imaxdiv(intmax_t " numerator ", intmax_t " denominator );
+\fBimaxdiv_t imaxdiv(intmax_t \fP\fInumerator\fP\fB, intmax_t \fP\fIdenominator\fP\fB);\fP
.fi
.sp
.in -4n
-.\"O Feature Test Macro Requirements for glibc (see
-.\"O .BR feature_test_macros (7)):
-glibc 向けの機能検査マクロの要件
-.RB ( feature_test_macros (7)
-参照):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参照):
.in
.ad l
.sp
-.BR lldiv ():
+\fBlldiv\fP():
.RS 4
-_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
-_POSIX_C_SOURCE\ >=\ 200112L;
+_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
.br
-or
-.I cc\ -std=c99
+or \fIcc\ \-std=c99\fP
.RE
.ad
-.\"O .SH DESCRIPTION
.SH 説明
-.\"O The
-.\"O .BR div ()
-.\"O function computes the value
-.\"O \fInumerator\fP/\fIdenominator\fP and
-.\"O returns the quotient and remainder in a structure
-.\"O named \fIdiv_t\fP that contains
-.\"O two integer members (in unspecified order) named \fIquot\fP and \fIrem\fP.
-.BR div ()
-関数は \fInumerator\fP/\fIdenominator\fP の値を計算する。
-商と余りは、
-\fIquot\fP (商) と \fIrem\fP (余り) という名前の 2 つの integer 型メンバを含む
-\fIdiv_t\fP という構造体の中に返される
-(メンバの順番は不定である)。
-.\"O The quotient is rounded toward zero.
-商は 0 に近い方に丸められる。
-.\"O The result satisfies \fIquot\fP*\fIdenominator\fP+\fIrem\fP = \fInumerator\fP.
-結果は \fIquot\fP*\fIdenominator\fP+\fIrem\fP = \fInumerator\fP を満たす。
+\fBdiv\fP() 関数は \fInumerator\fP/\fIdenominator\fP の値を計算する。 商と余りは、 \fIquot\fP (商) と
+\fIrem\fP (余り) という名前の 2 つの integer 型メンバを含む \fIdiv_t\fP という構造体の中に返される
+(メンバの順番は不定である)。 商は 0 に近い方に丸められる。 結果は \fIquot\fP*\fIdenominator\fP+\fIrem\fP =
+\fInumerator\fP を満たす。
.LP
-.\"O The
-.\"O .BR ldiv (),
-.\"O .BR lldiv (),
-.\"O and
-.\"O .BR imaxdiv ()
-.\"O functions do the same,
-.\"O dividing numbers of the indicated type and
-.\"O returning the result in a structure
-.\"O of the indicated name, in all cases with fields \fIquot\fP and \fIrem\fP
-.\"O of the same type as the function arguments.
-.BR ldiv (),
-.BR lldiv (),
-.BR imaxdiv ()
-関数は同様な動作をし、
-上に示した型の数値を割算して、上に示した名前の構造体に結果を返す。
-どの場合でもフィールド \fIquot\fP と \fIrem\fP は、
+\fBldiv\fP(), \fBlldiv\fP(), \fBimaxdiv\fP() 関数は同様な動作をし、
+上に示した型の数値を割算して、上に示した名前の構造体に結果を返す。 どの場合でもフィールド \fIquot\fP と \fIrem\fP は、
関数の引き数と同じ型である。
-.\"O .SH "RETURN VALUE"
.SH 返り値
-.\"O The \fIdiv_t\fP (etc.) structure.
\fIdiv_t\fP (などの) 構造体。
-.\"O .SH "CONFORMING TO"
.SH 準拠
-SVr4, 4.3BSD, C89.
-.\"O The functions
-.\"O .BR lldiv ()
-.\"O and
-.\"O .BR imaxdiv ()
-.\"O were added in C99.
-関数
-.BR lldiv ()
-と
-.BR imaxdiv ()
-は C99 に追加された。
-.\"O .SH EXAMPLE
+SVr4, 4.3BSD, C89, C99.
+関数 \fBlldiv\fP() と \fBimaxdiv\fP() は C99 に追加された。
.SH 例
-.\"O After
+以下の式を計算すると、
.nf
div_t q = div(\-5, 3);
.fi
-.\"O the values \fIq.quot\fP and \fIq.rem\fP are \-1 and \-2, respectively.
-を計算すると、\fIq.quot\fP と \fIq.rem\fP はそれぞれ \-1 と \-2 になる。
-.\"O .SH "SEE ALSO"
+\fIq.quot\fP と \fIq.rem\fP はそれぞれ \-1 と \-2 になる。
.SH 関連項目
-.BR abs (3),
-.BR remainder (3)
+\fBabs\fP(3), \fBremainder\fP(3)