User Tools


Differences

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

Link to this comparison view

cl:functions:stream-external-format [2019/09/14 05:00]
cl:functions:stream-external-format [2019/09/20 08:00] (current)
Line 1: Line 1:
 +====== Function STREAM-EXTERNAL-FORMAT ======
 +
 +====Syntax====
 +**stream-external-format** //stream// → //format//
 +
 +====Arguments and Values====
 +  * //stream// - a //​[[CL:​Glossary:​file stream]]//.
 +  * //format// - an //​[[CL:​Glossary:​external file format]]//.
 +
 +====Description====
 +Returns an //​[[CL:​Glossary:​external file format designator]]//​ for the //stream//.
 +
 +====Examples====
 +<​blockquote>​
 +([[CL:​Macros:​with-open-file]] (stream "​test"​ :direction :​output) ​
 +  (stream-external-format stream)) ​
 +<​r>:​DEFAULT </r>
 +<​r>//​or//​ :​ISO8859/​1-1987 </r>
 +<​r>//​or//​ (:ASCII :SAIL) </r>
 +<​r>//​or//​ ACME::​PROPRIETARY-FILE-FORMAT-17 </r>
 +<​r>//​or//​ #<​FILE-FORMAT :​ISO646-1983 2343673></​r>​
 +</​blockquote>​
 +
 +====Side Effects====
 +None.
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +None.
 +
 +====See Also====
 +The **'':​external-format''​** //​[[CL:​Glossary:​argument]]//​ to the function **[[CL:​Functions:​open]]** and the macro **[[CL:​Macros:​with-open-file]]**.
 +
 +====Notes====
 +The //format// returned is not necessarily meaningful to other //​[[CL:​Glossary:​implementation|implementations]]//​.
 +