CHARS(SIGNED) | CHARS(UNSIGNED)
Category
Floating-point and integer control
Pragma equivalent
Purpose
Determines whether all variables of type char are treated as either signed or unsigned.
Defaults
CHARS(UNSIGNED)
Parameters
- UNSIGNED
- Variables defined as char are treated as unsigned char.
- SIGNED
- Variables defined as char are treated as signed char.
Predefined macros
- _CHAR_SIGNED is predefined to 1 when the CHARS(SIGNED) compiler option is in effect; otherwise it is undefined.
- _CHAR_UNSIGNED is predefined to 1 when the CHARS(UNSIGNED) compiler option is in effect; otherwise it is undefined.