SETENVIRON

Linux specific questions.
grindstone
Posts: 767
Joined: May 05, 2015 5:35
Location: Germany

Re: SETENVIRON

Postby grindstone » Oct 22, 2020 14:25

fxm wrote:When using 'SETENVIRON(envStr)' with Linux, the 'envStr' string must be permanent (a literal, a variable declared in the main code or a static variable declared in a procedure), because Linux does not memorize the string but only a pointer to its data characters.
Then what about ZSTRING ?
fxm
Posts: 10043
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: SETENVIRON

Postby fxm » Oct 22, 2020 14:45

A string literal is by principle always a Zstring.
Otherwise, for Zstring variables, same constraint.

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 4 guests