diff options
Diffstat (limited to 'src/limits/CHAR_MAX.h')
| -rw-r--r-- | src/limits/CHAR_MAX.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/limits/CHAR_MAX.h b/src/limits/CHAR_MAX.h new file mode 100644 index 00000000..fc98c91b --- /dev/null +++ b/src/limits/CHAR_MAX.h @@ -0,0 +1,21 @@ +#include <limits.h> +#ifdef __CHAR_IS_UNSIGNED__ +#define CHAR_MAX (255) +#else +#define CHAR_MAX (127) +#endif + +/** char maximum **/ + +/*** +is the maximum value representable as a TYPE(char). +***/ + +/* +VALUE_SELECT(CONSTANT(UCHAR_MAX), on systems where TYPE(char) is default TYPE(unsigned)) +VALUE_SELECT(CONSTANT(SCHAR_MAX), on systems where TYPE(char) is default TYPE(signed)) +SEE_ALSO(CONSTANT(CHAR_MIN)) +*/ +/* +STDC(1) +*/ |
