.\" Updated Mon 29 Jan 2001 17:18:34 JST by Kentaro Shirakata <argrath@ub32.org>
.\"
.TH ABS 3 2010-09-20 "GNU" "Linux Programmer's Manual"
-.SH ̾Á°
+.SH 名前
.\"O abs, labs, llabs, imaxabs \- compute the absolute value of an integer
-abs, labs, llabs, imaxabs \- À°¿ô¤ÎÀäÂÐÃͤò·×»»¤¹¤ë
-.SH ½ñ¼°
+abs, labs, llabs, imaxabs \- 整数の絶対値を計算する
+.SH 書式
.nf
.B #include <stdlib.h>
.sp
.in -4n
.\"O Feature Test Macro Requirements for glibc (see
.\"O .BR feature_test_macros (7)):
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
+glibc 向けの機能検査マクロの要件
.RB ( feature_test_macros (7)
-»²¾È):
+参照):
.in
.sp
.ad l
or
.I cc\ -std=c99
.ad
-.SH ÀâÌÀ
+.SH 説明
.\"O The
.\"O .BR abs ()
.\"O function computes the absolute value of the integer
.\"O functions compute the absolute value of the argument \fIj\fP of the
.\"O appropriate integer type for the function.
.BR abs ()
-´Ø¿ô¤Ï¡¢À°¿ô¤Î°ú¿ô \fIj\fP ¤ÎÀäÂÐÃͤò·×»»¤¹¤ë¡£
+関数は、整数の引数 \fIj\fP の絶対値を計算する。
.BR labs (),
.BR llabs (),
.BR imaxabs ()
-´Ø¿ô¤Ï¡¢
-¤½¤ì¤¾¤ì¤Î´Ø¿ô¤Î·¿¤Ë±þ¤¸¤¿°ú¿ô \fIj\fP ¤ÎÀäÂÐÃͤò·×»»¤¹¤ë¡£
-.SH ÊÖ¤êÃÍ
+関数は、
+それぞれの関数の型に応じた引数 \fIj\fP の絶対値を計算する。
+.SH 返り値
.\"O Returns the absolute value of the integer argument, of the appropriate
.\"O integer type for the function.
-¤½¤ì¤¾¤ì¤Î´Ø¿ô¤Î·¿¤Ë±þ¤¸¤¿À°¿ô¤Î°ú¿ô¤ÎÀäÂÐÃͤòÊÖ¤¹¡£
-.SH ½àµò
+それぞれの関数の型に応じた整数の引数の絶対値を返す。
+.SH 準拠
.\"O SVr4, POSIX.1-2001, 4.3BSD, C99.
.\"O .\" POSIX.1 (1996 edition) only requires the
.\"O .\" .BR abs ()
.\"O .BR imaxabs ()
.\"O were added in C99.
SVr4, POSIX.1-2001, 4.3BSD, C99.
-.\" POSIX.1 (1996 ǯÈÇ) ¤Ï
+.\" POSIX.1 (1996 年版) は
.\" .BR abs ()
-.\" ´Ø¿ô¤Î¤ß¤òÍ׵ᤷ¤Æ¤¤¤ë¡£
-C89 ¤Ï
+.\" 関数のみを要求している。
+C89 は
.BR abs ()
-´Ø¿ô¤È
+関数と
.BR labs ()
-´Ø¿ô¤Î¤ß¤ò´Þ¤ó¤Ç¤¤¤ë¡£
+関数のみを含んでいる。
.BR llabs ()
-´Ø¿ô¤È
+関数と
.BR imaxabs ()
-´Ø¿ô¤Ï C99 ¤ÇÄɲ䵤줿¡£
-.SH Ãí°Õ
+関数は C99 で追加された。
+.SH 注意
.\"O Trying to take the absolute value of the most negative integer
.\"O is not defined.
-ºÇÂç¤ÎÉéÀ°¿ô¤ÎÀäÂÐÃͤϡ¢ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
+最大の負整数の絶対値は、定義されていない。
.PP
.\"O The
.\"O .BR llabs ()
.\"O function is included in
.\"O glibc since version 2.1.1.
.BR llabs ()
-´Ø¿ô¤Ï¥Ð¡¼¥¸¥ç¥ó 2.0 ¤«¤é glibc ¤Ë´Þ¤Þ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤¬¡¢
-libc5 ¤ä libc4 ¤Ë¤Ï¤Ê¤¤¡£
+関数はバージョン 2.0 から glibc に含まれるようになったが、
+libc5 や libc4 にはない。
.BR imaxabs ()
-´Ø¿ô¤Ï ¥Ð¡¼¥¸¥ç¥ó 2.1.1 ¤«¤é glibc ¤Ë´Þ¤Þ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¡£
+関数は バージョン 2.1.1 から glibc に含まれるようになった。
.PP
.\"O For
.\"O .BR llabs ()
.\"O \fB_ISOC99_SOURCE\fP or \fB_ISOC9X_SOURCE\fP (depending on the
.\"O version of glibc) before including any standard headers.
.BR llabs ()
-¤¬Àë¸À¤µ¤ì¤ë¤¿¤á¤Ë¤Ï¡¢É¸½à¥Ø¥Ã¥À¤ò include ¤¹¤ëÁ°¤Ë
-\fB_ISOC99_SOURCE\fP ¤« \fB_ISOC9X_SOURCE\fP(¤É¤Á¤é¤«¤Ï glibc ¤Î
-¥Ð¡¼¥¸¥ç¥ó¤Ë°Í¸¤¹¤ë)¤ò define ¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ë¡£
+が宣言されるためには、標準ヘッダを include する前に
+\fB_ISOC99_SOURCE\fP か \fB_ISOC9X_SOURCE\fP(どちらかは glibc の
+バージョンに依存する)を define しておく必要がある。
.PP
.\"O GCC handles
.\"O .BR abs ()
.\"O and
.\"O .BR imaxabs ()
.\"O as builtins.
-GCC ¤Ï
+GCC は
.BR abs ()
-¤È
+と
.BR labs ()
-¤ò¥Ó¥ë¥É¥¤¥ó´Ø¿ô¤È¤·¤Æ°·¤¦¡£
-GCC 3.0 ¤Ï
+をビルドイン関数として扱う。
+GCC 3.0 は
.BR llabs ()
-¤È
+と
.BR imaxabs ()
-¤â¥Ó¥ë¥É¥¤¥ó¤È¤·¤Æ°·¤¦¡£
-.SH ´ØÏ¢¹àÌÜ
+もビルドインとして扱う。
+.SH 関連項目
.BR cabs (3),
.BR ceil (3),
.BR fabs (3),