strtoimax(3) - wariua/manpages-ko GitHub Wiki
strtoimax, strtoumax - λ¬Έμμ΄μ μ μλ‘ λ³ννκΈ°
#include <inttypes.h>
intmax_t strtoimax(const char *nptr, char **endptr, int base);
uintmax_t strtoumax(const char *nptr, char **endptr, int base);
μ΄ ν¨μλ€μ strtol(3) λ° strtoul(3)κ³Ό κ°λ, κ°κ° intmax_t
λ° uintmax_t
νμ
κ°μ λ°ννλ€.
μ±κ³΅ μ λ³νν κ°μ λ°ννλ€. λ³νν κ²μ΄ μμΌλ©΄ 0μ λ°ννλ€. μ€λ²νλ‘μ°λ μΈλνλ‘μ° μμλ INTMAX_MAX
λ INTMAX_MIN
, λλ UINTMAX_MAX
λ₯Ό λ°ννλ©° errno
λ₯Ό ERANGE
λ‘ μ€μ νλ€.
μ΄ μ μμ μ¬μ©νλ μ©μ΄λ€μ λν μ€λͺ μ attributes(7)λ₯Ό 보λΌ.
μΈν°νμ΄μ€ | μμ± | κ° |
---|---|---|
strtoimax() , strtoumax()
|
μ€λ λ μμ μ± | MT-Safe locale |
POSIX.1-2001, POSIX.1-2008, C99.
imaxabs(3)
, imaxdiv(3)
, strtol(3), strtoul(3), wcstoimax(3)
2015-08-08