OSDN Git Service

a6586c4f00cea9713935ec5a69a6ebe8fdd2ec0f
[linuxjm/LDP_man-pages.git] / release / man3 / strtoimax.3
1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
12 .\"
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 .\" GNU General Public License for more details.
17 .\"
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
21 .\" USA.
22 .\"
23 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
24 .\"         all rights reserved.
25 .\" Translated Sun Sep  5 21:02:09 JST 2004
26 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
27 .\"
28 .TH STRTOIMAX 3 2003-11-28 "" "Linux Programmer's Manual"
29 .SH 名前
30 strtoimax, strtoumax \- 文字列を整数に変換する
31 .SH 書式
32 .nf
33 .B #include <inttypes.h>
34 .sp
35 .BI "intmax_t strtoimax(const char *" nptr ", char **" endptr ", int " base );
36 .br
37 .BI "uintmax_t strtoumax(const char *" nptr ", char **" endptr ", int " base );
38 .fi
39 .SH 説明
40 これらの関数はちょうど
41 .BR strtol (3)
42
43 .BR strtoul (3)
44 に似ているが、それぞれ
45 .I intmax_t
46
47 .I uintmax_t
48 型の値を返す。
49 .SH 返り値
50 成功した場合、変換された値が返される。
51 変換するものが見つからなかった場合、0 が返される。
52 オーバーフローまたはアンダーフローの場合、
53 .B INTMAX_MAX
54 または
55 .B INTMAX_MIN
56 または
57 .B UINTMAX_MAX
58 が返され、
59 .I errno
60
61 .B ERANGE
62 に設定される。
63 .SH 準拠
64 C99, POSIX.1-2001.
65 .SH 関連項目
66 .BR imaxabs (3),
67 .BR imaxdiv (3),
68 .BR strtol (3),
69 .BR strtoul (3),
70 .BR wcstoimax (3)