openportp
openportp(g_obj) =>t/nil
Description
Checks if the given argument is a port object and it is open (for input or output), nil otherwise.
Arguments
Value Returned
|
If g_obj is not a port and it is not open for input or output.. |
Examples
(portp ip = (infile “inFile”))
=> t
(portp op = (outfile “outFile”))
=> t
(openportp ip)
=> t
(openportp op)
=> t
(close ip)
=> t
(openportp ip)
=> nil
(close op)
=> t
(openportp op)
=> nil
Related Topics
Return to top