-
Notifications
You must be signed in to change notification settings - Fork 7
strtoimax(3)
Seonghun Lim edited this page Mar 20, 2018
·
2 revisions
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