Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

close

close( 
p_port 
) 
=> t

Description

Drains, closes, and frees a port. When a file is closed, it frees the FILE* associated with p_port. Do not use this function on piport, poport, stdin, stdout, and stderr.

Arguments

p_port

Name of port to close.

Value Returned

t

The port is closed successfully.

Examples

p = outfile("~/test/myFile") 
=> port:"~/test/myFile"
close(p)                     
=> t

Related Topics

outfile

infile

drain


Return to top
 ⠀
X