strtoimax
Section: C Library Functions (3)
Updated: 2026-02-08
Index
JM Home Page
roff page
名前
strtoimax, strtoumax - 文字列を整数に変換する
ライブラリ
標準 C ライブラリ (libc,~-lc)
書式
#include <inttypes.h>
intmax_t strtoimax(const char *restrict nptr, char **restrict endptr,
int base);
uintmax_t strtoumax(const char *restrict nptr, char **restrict endptr,
int base);
説明
これらの関数はちょうど strtol(3) と strtoul(3) に似ているが、それぞれ intmax_t と
uintmax_t 型の値を返す。
返り値
成功した場合、変換された値が返される。 変換するものが見つからなかった場合、0 が返される。 オーバーフローまたはアンダーフローの場合、
INTMAX_MAX または INTMAX_MIN または UINTMAX_MAX が返され、 errno が
ERANGE に設定される。
属性
この節で使用されている用語の説明については、 attributes(7) を参照。
| インターフェース | 属性 | 値
|
|
strtoimax(),
strtoumax()
| Thread safety | MT-Safe locale
|
標準規格
C11, POSIX.1-2008.
歴史
POSIX.1-2001, C99.
関連項目
imaxabs(3), imaxdiv(3), strtol(3), strtoul(3), wcstoimax(3)
Index
- 名前
-
- ライブラリ
-
- 書式
-
- 説明
-
- 返り値
-
- 属性
-
- 標準規格
-
- 歴史
-
- 関連項目
-
This document was created by
man2html,
using the manual pages.