OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man3 / div.3
index 8cfebea..aaa34a9 100644 (file)
 .\" 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"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH DIV 3 2012\-04\-17 "" "Linux Programmer's Manual"
 .SH 名前
 div, ldiv, lldiv, imaxdiv \- integer 型の割算の商と余りを計算する
 .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
-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
 .SH 説明
-.BR div ()
-関数は \fInumerator\fP/\fIdenominator\fP の値を計算する。
-商と余りは、
-\fIquot\fP (商) と \fIrem\fP (余り) という名前の 2 つの integer 型メンバを含む
-\fIdiv_t\fP という構造体の中に返される
-(メンバの順番は不定である)。
-商は 0 に近い方に丸められる。
-結果は \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
-.BR ldiv (),
-.BR lldiv (),
-.BR imaxdiv ()
-関数は同様な動作をし、
-上に示した型の数値を割算して、上に示した名前の構造体に結果を返す。
-どの場合でもフィールド \fIquot\fP と \fIrem\fP は、
+\fBldiv\fP(), \fBlldiv\fP(), \fBimaxdiv\fP()  関数は同様な動作をし、
+上に示した型の数値を割算して、上に示した名前の構造体に結果を返す。 どの場合でもフィールド \fIquot\fP と \fIrem\fP は、
 関数の引き数と同じ型である。
 .SH 返り値
 \fIdiv_t\fP (などの) 構造体。
 .SH 準拠
-SVr4, 4.3BSD, C89.
-関数
-.BR lldiv ()
-と
-.BR imaxdiv ()
-は C99 に追加された。
+SVr4, 4.3BSD, C89, C99.
+関数 \fBlldiv\fP() と \fBimaxdiv\fP() は C99 に追加された。
 .SH 例
+以下の式を計算すると、
 .nf
 
         div_t q = div(\-5, 3);
 
 .fi
-を計算すると、\fIq.quot\fP と \fIq.rem\fP はそれぞれ \-1 と \-2 になる。
+\fIq.quot\fP と \fIq.rem\fP はそれぞれ \-1 と \-2 になる。
 .SH 関連項目
-.BR abs (3),
-.BR remainder (3)
+\fBabs\fP(3), \fBremainder\fP(3)