Functions That Set errno and Return an Out-of-Band Error Indicator
Function Name | Return Value | Error Value |
ftell() | -1L | Positive |
fgetpos(), fsetpos() | Nonzero | Positive |
mbrtowc(), mbsrtowcs() | (size_t)(-1) | EILSEQ |
signal() | SIG_ERR | Positive |
wcrtomb(), wcsrtombs() | (size_t)(-1) | EILSEQ |
mbrtoc16(), mbrtoc32() | (size_t)(-1) | EILSEQ |
c16rtomb(), c32rtomb() | (size_t)(-1) | EILSEQ |
Functions that Set errno and Return an In-Band Error Indicator
Function Name | Return Value | Error Value |
fgetwc(), fputwc() | WEOF | EILSEQ |
strtol(), wcstol() | LONG_MIN or LONG_MAX | ERANGE |
strtoll(), wcstoll() | LLONG_MIN or LLONG_MAX | ERANGE |
strtoul(), wcstoul() | ULONG_MAX | ERANGE |
strtoull(), wcstoull() | ULLONG_MAX | ERANGE |
strtoumax(), wcstoumax() | UINTMAX_MAX | ERANGE |
strtod(), wcstod() | 0 or ±HUGE_VAL | ERANGE |
strtof(), wcstof() | 0 or ±HUGE_VALF | ERANGE |
strtold(), wcstold() | 0 or ±HUGE_VALL | ERANGE |
strtoimax(), wcstoimax() | INTMAX_MIN, INTMAX_MAX | ERANGE |
'C&C++' 카테고리의 다른 글
How to use constructor and destructor in C language (0) | 2024.04.24 |
---|---|
CMake Syntax (0) | 2020.01.21 |
How To Use Unit Test In C++ (0) | 2020.01.13 |
WINAPI How To Hook ConnectEx (0) | 2019.11.06 |
WINAPI DLL_PROCESS_DETACH (1) | 2019.08.08 |