X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=release%2Fman3%2Fatoi.3;h=e2608d5536a237d73ec9e842818e0dcefd50ba87;hb=c1dfa2f6ab1bbed84992d3c59ee9925f4d453668;hp=40f53bb51db4ebc18eb0183c63978b36156aa50c;hpb=7e089fcc022461849bbc09437103cc337a88dd9c;p=linuxjm%2FLDP_man-pages.git diff --git a/release/man3/atoi.3 b/release/man3/atoi.3 index 40f53bb5..e2608d55 100644 --- a/release/man3/atoi.3 +++ b/release/man3/atoi.3 @@ -1,5 +1,6 @@ .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" +.\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. @@ -19,6 +20,7 @@ .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. +.\" %%%LICENSE_END .\" .\" References consulted: .\" Linux libc source code @@ -28,92 +30,64 @@ .\" Modified Sat Jul 24 21:38:42 1993, Rik Faith (faith@cs.unc.edu) .\" Modified Sun Dec 17 18:35:06 2000, Joseph S. Myers .\" -.\" Japanese Version Copyright (c) 1996 Kentaro OGAWA -.\" all rights reserved. -.\" Translated Sat, 13 Jul 1996 22:47:32 +0900 -.\" by Kentaro OGAWA -.\" Updated Tue 30 Jan 2001 JST by Kentaro Shirakata +.\"******************************************************************* .\" -.TH ATOI 3 2010-09-20 "GNU" "Linux Programmer's Manual" -.SH ̾Á° -atoi, atol, atoll, atoq \- ʸ»úÎó¤òÀ°¿ô·¿¤ËÊÑ´¹¤¹¤ë -.SH ½ñ¼° +.\" This file was generated with po4a. Translate the source file. +.\" +.\"******************************************************************* +.TH ATOI 3 2012\-08\-03 GNU "Linux Programmer's Manual" +.SH 名前 +atoi, atol, atoll, atoq \- 文字列を整数型に変換する +.SH 書式 .nf -.B #include +\fB#include \fP .sp -.BI "int atoi(const char *" nptr ); +\fBint atoi(const char *\fP\fInptr\fP\fB);\fP .br -.BI "long atol(const char *" nptr ); +\fBlong atol(const char *\fP\fInptr\fP\fB);\fP .br -.BI "long long atoll(const char *" nptr ); +\fBlong long atoll(const char *\fP\fInptr\fP\fB);\fP .br -.BI "long long atoq(const char *" nptr ); +\fBlong long atoq(const char *\fP\fInptr\fP\fB);\fP .fi .sp .in -4n -glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï -.RB ( feature_test_macros (7) -»²¾È): +glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参照): .in .sp .ad l -.BR atoll (): +\fBatoll\fP(): .RS 4 -_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || -_POSIX_C_SOURCE\ >=\ 200112L; +_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE +|| _POSIX_C_SOURCE\ >=\ 200112L; .br -or -.I cc\ -std=c99 +または \fIcc\ \-std=c99\fP .RE .ad -.SH ÀâÌÀ -.BR atoi () -´Ø¿ô¤Ï¡¢\fInptr\fP ¤Ë¤è¤Ã¤Æ»Ø¼¨¤µ¤ì¤ëʸ»úÎó¤Î¤Ï¤¸¤á¤ÎÉôʬ¤ò -.I int -·¿À°¿ô¤ËÊÑ´¹¤¹¤ë¡£ -¤³¤Î¿¶¤ëÉñ¤¤¤Ï¡¢ -.BR atoi () -´Ø¿ô¤¬¥¨¥é¡¼¤ò¸«¤Ä¤±¤Ê¤¤ÅÀ°Ê³°¤Ï¡¢ +.SH 説明 +\fBatoi\fP() 関数は、\fInptr\fP によって指示される文字列のはじめの部分を \fIint\fP 型整数に変換する。 この振る舞いは、 +\fBatoi\fP() 関数がエラーを見つけない点以外は、 .sp .in +4n -strtol(nptr, (char **) NULL, 10); +strtol(nptr, NULL, 10); .in .sp -¤ÈƱ¤¸¤Ç¤¢¤ë¡£ +と同じである。 .PP -.BR atol () -´Ø¿ô¤È -.BR atoll () -´Ø¿ô¤Ï -.BR atoi () -¤ÈƱÍͤﶤëÉñ¤¤¤ò¤¹¤ë¤¬¡¢ -ʸ»úÎó¤Î¤Ï¤¸¤á¤ÎÉôʬ¤ò¤½¤ì¤¾¤ì \fIlong\fP ¤ä \fIlong long\fP ¤ËÊÑ´¹¤¹¤ë¡£ -.BR atoq () -¤Ï -.BR atoll () -¤Î¸Å¤¤Ì¾Á°¤Ç¤¢¤ë¡£ -.SH ÊÖ¤êÃÍ -ÊÑ´¹¤µ¤ì¤¿ÃÍ¡£ -.SH ½àµò -SVr4, POSIX.1-2001, 4.3BSD, C99. -C89 ¤È POSIX.1-1996 ¤Ë¤Ï -.BR atoi () -¤È -.BR atol () -¤À¤±¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¡£ -.BR atoq () -¤Ï GNU ¤Ë¤è¤ë³ÈÄ¥¤Ç¤¢¤ë¡£ -.SH Ãí°Õ -Èóɸ½à¤Ç¤¢¤ë -.BR atoq () -´Ø¿ô¤Ï libc 4.6.27 ¤ä glibc 2 ¤Ë¤Ï´Þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¤¬¡¢ -libc5 ¤È libc 4.7 ¤Ë¤Ï¸ºß¤·¤Æ¤¤¤ë (¤¿¤À¤· libc 5.4.44 ¤Þ¤Ç¤Ï -\fI\fP ¤Î¥¤¥ó¥é¥¤¥ó´Ø¿ô¤Î¤ß¤Ç¤¢¤ë)¡£ -.BR atoll () -´Ø¿ô¤Ï glibc 2 ¤Î¥Ð¡¼¥¸¥ç¥ó 2.0.2 ¤«¤é¸ºß¤·¤Æ¤¤¤ë¤¬¡¢ -libc4 ¤ä libc5 ¤Ë¤Ï¸ºß¤·¤Ê¤¤¡£ -.SH ´ØÏ¢¹àÌÜ -.BR atof (3), -.BR strtod (3), -.BR strtol (3), -.BR strtoul (3) +\fBatol\fP() 関数と \fBatoll\fP() 関数は \fBatoi\fP() と同様の振る舞いをするが、 文字列のはじめの部分をそれぞれ +\fIlong\fP や \fIlong long\fP に変換する。 \fBatoq\fP() は \fBatoll\fP() の古い名前である。 +.SH 返り値 +変換された値。 +.SH 準拠 +SVr4, POSIX.1\-2001, 4.3BSD, C99. C89 と POSIX.1\-1996 には \fBatoi\fP() と +\fBatol\fP() だけが含まれている。 \fBatoq\fP() は GNU による拡張である。 +.SH 注意 +非標準である \fBatoq\fP() 関数は libc 4.6.27 や glibc 2 には含まれていないが、 libc5 と libc 4.7 +には存在している (ただし libc 5.4.44 までは \fI\fP のインライン関数のみである)。 +\fBatoll\fP() 関数は glibc 2 のバージョン 2.0.2 から存在しているが、 libc4 や libc5 には存在しない。 +.SH 関連項目 +\fBatof\fP(3), \fBstrtod\fP(3), \fBstrtol\fP(3), \fBstrtoul\fP(3) +.SH この文書について +この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部 +である。プロジェクトの説明とバグ報告に関する情報は +http://www.kernel.org/doc/man\-pages/ に書かれている。