OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / release / man3 / strtoimax.3
1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\"
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
13 .\"
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 .\" GNU General Public License for more details.
18 .\"
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, see
21 .\" <http://www.gnu.org/licenses/>.
22 .\" %%%LICENSE_END
23 .\"
24 .\"*******************************************************************
25 .\"
26 .\" This file was generated with po4a. Translate the source file.
27 .\"
28 .\"*******************************************************************
29 .\"
30 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
31 .\"         all rights reserved.
32 .\" Translated Sun Sep  5 21:02:09 JST 2004
33 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
34 .\"
35 .TH STRTOIMAX 3 2014\-01\-22 "" "Linux Programmer's Manual"
36 .SH 名前
37 strtoimax, strtoumax \- 文字列を整数に変換する
38 .SH 書式
39 .nf
40 \fB#include <inttypes.h>\fP
41 .sp
42 \fBintmax_t strtoimax(const char *\fP\fInptr\fP\fB, char **\fP\fIendptr\fP\fB, int \fP\fIbase\fP\fB);\fP
43 .br
44 \fBuintmax_t strtoumax(const char *\fP\fInptr\fP\fB, char **\fP\fIendptr\fP\fB, int \fP\fIbase\fP\fB);\fP
45 .fi
46 .SH 説明
47 これらの関数はちょうど \fBstrtol\fP(3)  と \fBstrtoul\fP(3)  に似ているが、それぞれ \fIintmax_t\fP と
48 \fIuintmax_t\fP 型の値を返す。
49 .SH 返り値
50 成功した場合、変換された値が返される。 変換するものが見つからなかった場合、0 が返される。 オーバーフローまたはアンダーフローの場合、
51 \fBINTMAX_MAX\fP または \fBINTMAX_MIN\fP または \fBUINTMAX_MAX\fP が返され、 \fIerrno\fP が
52 \fBERANGE\fP に設定される。
53 .SH 属性
54 .SS "マルチスレッディング (pthreads(7) 参照)"
55 関数 \fBstrtoimax\fP() と \fBstrtoumax\fP() は、例外付きのスレッドセーフである。実行中に \fBsetlocale\fP(3)
56 を呼び出してロケールを変更しない限り、マルチスレッドアプリケーションで安全に使用することができる。
57 .SH 準拠
58 C99, POSIX.1\-2001.
59 .SH 関連項目
60 \fBimaxabs\fP(3), \fBimaxdiv\fP(3), \fBstrtol\fP(3), \fBstrtoul\fP(3), \fBwcstoimax\fP(3)
61 .SH この文書について
62 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
63 である。プロジェクトの説明とバグ報告に関する情報は
64 http://www.kernel.org/doc/man\-pages/ に書かれている。