chickadee » foreign » types » unsigned-char

chartype
unsigned-chartype

A signed or unsigned character.

As an argument, the input Scheme character is cast to C char or unsigned char, resulting in an 8-bit value. A Scheme character with an integer value outside 0-127 (signed) or 0-255 (unsigned) will be silently truncated to fit; in other words, don't feed it UTF-8 data.

As a return type, accepts any valid Unicode code point; the return type is treated as a C int, and converted to a Scheme character.