Basic module

copy_temporary_string

procedure · 1 overloadSource

A copy of s in temporary storage. It must not be freed; it lasts until the temporary storage is reset.

copy_temporary_string :: (s: string) -> string

Parameters

s: string

Returns

string
ExampleOpen in playground ↗
copy := copy_temporary_string("scratch");
assert(copy == "scratch");
reset_temporary_storage();

See also