inttypes.ch
Declarations
Parameters
- nptr - pointer to the null-terminated byte string to be interpreted TODO restricted @param endptr - pointer to a pointer to character. TODO restricted @param base - base of the interpreted integer value @return If successful, an integer value corresponding to the contents of str is returned. If the converted value falls out of range of corresponding return type, a range error occurs (setting errno to ERANGE) and INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX or 0 is returned, as appropriate. If no conversion can be performed, 0 is returned. @see https:en.cppreference.com/w/c/string/byte/strtoimax
- endptr - pointer to a pointer to character. TODO restricted @param base - base of the interpreted integer value @return If successful, an integer value corresponding to the contents of str is returned. If the converted value falls out of range of corresponding return type, a range error occurs (setting errno to ERANGE) and INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX or 0 is returned, as appropriate. If no conversion can be performed, 0 is returned. @see https:en.cppreference.com/w/c/string/byte/strtoimax
- base - base of the interpreted integer value @return If successful, an integer value corresponding to the contents of str is returned. If the converted value falls out of range of corresponding return type, a range error occurs (setting errno to ERANGE) and INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX or 0 is returned, as appropriate. If no conversion can be performed, 0 is returned. @see https:en.cppreference.com/w/c/string/byte/strtoimax
Returns
If successful, an integer value corresponding to the contents of str is returned. If the converted value falls out of range of corresponding return type, a range error occurs (setting errno to ERANGE) and INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX or 0 is returned, as appropriate. If no conversion can be performed, 0 is returned. @see https:en.cppreference.com/w/c/string/byte/strtoimax
See Also
- https:en.cppreference.com/w/c/string/byte/strtoimax
Parameters
- n - integer value @return The absolute value of n (i.e. |n|), if it is representable. @see https:en.cppreference.com/w/c/numeric/math/abs
Returns
The absolute value of n (i.e. |n|), if it is representable. @see https:en.cppreference.com/w/c/numeric/math/abs
See Also
- https:en.cppreference.com/w/c/numeric/math/abs
Parameters
- x, y - integer values @return If both the remainder and the quotient can be represented as objects of the corresponding type (int, long, long long, intmax_t, respectively), returns both as an object of type div_t, ldiv_t, lldiv_t, imaxdiv_t @see https:en.cppreference.com/w/c/numeric/math/div
Returns
If both the remainder and the quotient can be represented as objects of the corresponding type (int, long, long long, intmax_t, respectively), returns both as an object of type div_t, ldiv_t, lldiv_t, imaxdiv_t @see https:en.cppreference.com/w/c/numeric/math/div
See Also
- https:en.cppreference.com/w/c/numeric/math/div
Parameters
Returns
If successful, an integer value corresponding to the contents of str is returned. If the converted value falls out of range of corresponding return type, a range error occurs (setting errno to ERANGE) and INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX or 0 is returned, as appropriate. If no conversion can be performed, 0 is returned. @see https:en.cppreference.com/w/c/string/byte/strtoimax
See Also