StdcLimits extension

Extension on Stdc to provide <limits.h> functionality.

Note: Dart only uses 64-bit integers (int). To emulate standard C characteristics, standard 32-bit bounds are mapped for INT_ and LONG_ is mapped to 64-bit.

on

Properties

CHAR_BIT int

Available on Stdc, provided by the StdcLimits extension

Number of bits in a char
no setter
CHAR_MAX int

Available on Stdc, provided by the StdcLimits extension

Maximum value for a char
no setter
CHAR_MIN int

Available on Stdc, provided by the StdcLimits extension

Minimum value for a char
no setter
INT_MAX int

Available on Stdc, provided by the StdcLimits extension

Maximum value for an int (Assuming 32-bit mapping)
no setter
INT_MIN int

Available on Stdc, provided by the StdcLimits extension

Minimum value for an int (Assuming 32-bit mapping)
no setter
LLONG_MAX int

Available on Stdc, provided by the StdcLimits extension

Maximum value for a long long int
no setter
LLONG_MIN int

Available on Stdc, provided by the StdcLimits extension

Minimum value for a long long int
no setter
LONG_MAX int

Available on Stdc, provided by the StdcLimits extension

Maximum value for a long int (Assuming 64-bit mapping)
no setter
LONG_MIN int

Available on Stdc, provided by the StdcLimits extension

Minimum value for a long int (Assuming 64-bit mapping)
no setter
SCHAR_MAX int

Available on Stdc, provided by the StdcLimits extension

Maximum value for a signed char
no setter
SCHAR_MIN int

Available on Stdc, provided by the StdcLimits extension

Minimum value for a signed char
no setter
SHRT_MAX int

Available on Stdc, provided by the StdcLimits extension

Maximum value for a short int
no setter
SHRT_MIN int

Available on Stdc, provided by the StdcLimits extension

Minimum value for a short int
no setter
UCHAR_MAX int

Available on Stdc, provided by the StdcLimits extension

Maximum value for an unsigned char
no setter
UINT_MAX int

Available on Stdc, provided by the StdcLimits extension

Maximum value for an unsigned int (Assuming 32-bit mapping)
no setter
ULLONG_MAX int

Available on Stdc, provided by the StdcLimits extension

Maximum value for an unsigned long long int
no setter
ULONG_MAX int

Available on Stdc, provided by the StdcLimits extension

Maximum value for an unsigned long int (Mapping to Dart's max safe integer since Dart doesn't have unsigned 64-bit) Using maximum 64-bit signed as approximation. NOTE: A true unsigned 64-bit int max is 18446744073709551615, but Dart's int cannot hold it safely without third-party types.
no setter
USHRT_MAX int

Available on Stdc, provided by the StdcLimits extension

Maximum value for an unsigned short int
no setter