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

instring

instring( 
t_string 
) 
=> p_port

Description

Opens a string for reading, just as infile would open a file.

An input port that can be used to read the string is returned. Always remember to close the port when you are done.

Arguments

t_string

Input string opened for reading.

Value Returned

p_port

Port for the input string.

Examples

s = "Hello World!"       
=> "Hello World!"
p = instring(s)
=> port:"*string*"
fscanf(p "%s %s" a b)
=> 2
a
=> "Hello"
b
=> "World!"
close(p)=> t

Related Topics

gets

infile


Return to top
 ⠀
X