ordchr extension adds two functions, named
chr(), as follows.
This is how you load the extension.
number = ord(string)
Return the numeric value of the first character in
char = chr(number)
Return a string whose first character is that represented by
These functions are inspired by the Pascal language functions of the same name. Here is an example:
@load "ordchr" … printf("The numeric value of 'A' is %d\n", ord("A")) printf("The string value of 65 is %s\n", chr(65))