4 ms·
Sigh: "The contents of the header <limits.h> are given below, in alphabetical order. The minimum magnitudes shown shall be replaced by implementation-defined m
by sfk 16y ago
Sigh:
"The contents of the header <limits.h> are given below, in alphabetical order. The
minimum magnitudes shown shall be replaced by implementation-defined magnitudes
with the same sign."
#define UINT_MAX 65535
Key here is implementation-defined, with a minimum of 65535.
- senki 16y agoPlatforms differ, and the limits.h reflects this, that's the point. We should use the abstractions (the #defines) of the standard library, i.e. refer to these values by their names, that's the way to write portable software.
- protomyth 16y agoI always though that was set by the vendor correctly. Oh well.. I always liked the definition of true in Forth (all bits set to 1). It really made it a lot easier.