blob: b67b0c6b95327ef310d778a32b4e8e4e4b0219bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
% CPSC-FUNCTION-CHR(7)
# NAME
cpsc-function-chr - convert a byte code to text
# SYNOPSIS
```text
CHR(code : INTEGER) RETURNS CHAR
```
# DESCRIPTION
Provided by the standard string library, loaded and linked by default.
Convert the low eight bits of code to a CHAR. The result is CHAR, not STRING; a CHAR converts implicitly to STRING where a STRING is expected. Use ASCII codes 1 to 127 for ordinary text; code 0 produces one NUL byte, so LENGTH(CHR(0)) is 1.
# EXAMPLE
```text
OUTPUT CHR(65)
```
# SEE ALSO
[cpsc-language-overview(7)](../cpsc-language-overview.7.md), [cpsc-function-asc(7)](cpsc-function-asc.7.md).
|