#pragma chars

Descripton

The #pragma chars directive sets the sign type of char objects to be either signed or unsigned.

Syntax

Read syntax diagramSkip visual syntax diagram                        .-unsigned-.
>>-#--pragma--chars--(--+-signed---+--)------------------------><

Notes

In order to have effect, this pragma must appear before any source statements.

Once specified, the pragma applies to the entire file and cannot be turned off. If a source file contains any functions that you want to be compiled without #pragma chars, place these functions in a different file. If the pragma is specified more than once in the source file, the first one will take precedence.

Note:
The default character type behaves like an unsigned char.

Related information