write-char

(write-char integer [file_descriptor])

The write-char function writes a single character to a file specified by file_descriptor or to the Command Window.

The single character is specified by an ASCII code (given as integer).

Return Value

The function returns an integer value.

Examples

: (write-char 65)

A65 ; 65 is the return value

: (write-char (ascii "A"))

A65

: (setq fd (open "abc.txt" "w"))

<File: #4717:4624>

: (write-char 65 fd)

65