#pragma options chars, #pragma chars
Determines whether all variables of type char are treated as either signed or unsigned.
Option syntax .-unsigned-. >>- -q--chars--=--+-signed---+---------------------------------><
Pragma syntax .-unsigned-. >>-#--pragma--chars--(--+-signed---+--)------------------------><
-qchars=unsigned
Regardless of the setting of this option or pragma, the type of char is still considered to be distinct from the types unsigned char and signed char for purposes of type-compatibility checking.
The pragma must appear before any source statements. If the pragma is specified more than once in the source file, the first one will take precedence. Once specified, the pragma applies to the entire file and cannot be disabled; if a source file contains any functions that you want to compile without #pragma chars, place these functions in a different file.
xlc myprogram.c -qchars=signed