User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cl:functions:write-char [2019/11/11 05:00]
cl:functions:write-char [2019/11/15 20:00] (current)
Line 1: Line 1:
 +====== Function WRITE-CHAR ======
 +
 +====Syntax====
 +  * **write-char** //character ''&​optional''​ //​output-stream//​ → //​character//​
 +
 +====Arguments and Values====
 +  * //​character//​ - a //​[[CL:​Glossary:​character]]//​.
 +  * //​output-stream//​ -- an //​[[CL:​Glossary:​output]]//​ //​[[CL:​Glossary:​stream designator]]//​. The default is //​[[CL:​Glossary:​standard output]]//.
 +
 +====Description====
 +**write-char** outputs //​character//​ to //​output-stream//​.
 +
 +====Examples==== ​
 +<​blockquote> ​
 +(write-char #\a)
 +<o>a </o>
 +<​r>#​\a </r>
 +(with-output-to-string (s) 
 +  (write-char #\a s) 
 +  (write-char #\Space s) 
 +  (write-char #\b s)) 
 +<​r>"​a b"</​r>​
 +</​blockquote>​
 +
 +====Side Effects====
 +The //​output-stream//​ is modified.
 +
 +====Affected By====
 +**[[CL:​Variables:​star-standard-output-star|*standard-output*]]**,​ **[[CL:​Variables:​star-terminal-io-star|*terminal-io*]]**.
 +
 +====Exceptional Situations====
 +None.
 +
 +====See Also====
 +  * **[[CL:​Functions:​read-char|Function READ-CHAR]]**
 +  * **[[CL:​Functions:​write-byte|Function WRITE-BYTE]]**
 +  * **[[CL:​Functions:​write-sequence|Function WRITE-SEQUENCE]]**
 +
 +====Notes====
 +None.
 +
 +\issue{READ-AND-WRITE-BYTES:​NEW-FUNCTIONS}