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

getOutstring

getOutstring( 
s_port) 
=> t_string / nil

Description

Retrieves the content of the outstring port (while it is open).

Arguments

s_port

Specifies the outstring port from which the content needs to be retrieved

Value Returned

t_string

The string read from the outstring port.

nil

The string cannot be read from the outstring port.

Examples

s = outstring()
= >port:"*string*"
fprintf(s "Quick brown")
getOutstring(s)
=>"Quick brown"
fprintf(s " fox jumps")
getOutstring(s)
=> "Quick brown fox jumps"
fprintf(s " over the lazy dog")
getOutstring(s)
=> "Quick brown fox jumps over the lazy dog"
close(s)
getOutstring(s)
=> nil

Return to top
 ⠀
X