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
Value Returned
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
Return to top