char

Defines a variable to store a character. The value is either signed or nonnegative, depending on the Type-Specifier.

Example

In the following example, each element in an array of char's, character_set, is converted to lower case.

char character_set[] = {'A', '5', '$', 'Z'};

int i;

for (i=0; i<4; i++ )

lr_output_message ("%c", tolower(character_set[i]));

Example: Output:

Action.c(7): a

Action.c(7): 5

Action.c(7): $

Action.c(7): z